本文整理汇总了C#中CustomizersHolder.Merge方法的典型用法代码示例。如果您正苦于以下问题:C# CustomizersHolder.Merge方法的具体用法?C# CustomizersHolder.Merge怎么用?C# CustomizersHolder.Merge使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CustomizersHolder
的用法示例。
在下文中一共展示了CustomizersHolder.Merge方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MergeShouldMergeIdBagPropertiesMapper
public void MergeShouldMergeIdBagPropertiesMapper()
{
var emptyHolder = new CustomizersHolder();
var holder = new CustomizersHolder();
var called = false;
holder.AddCustomizer(propertyPath, (IIdBagPropertiesMapper x) => called = true);
emptyHolder.Merge(holder);
emptyHolder.InvokeCustomizers(propertyPath, (IIdBagPropertiesMapper)null);
Assert.That(called, Is.True);
}
示例2: MergeShouldMergeCollectionPropertiesMapper
public void MergeShouldMergeCollectionPropertiesMapper()
{
var emptyHolder = new CustomizersHolder();
var holder = new CustomizersHolder();
var called = false;
holder.AddCustomizer(propertyPath, (ICollectionPropertiesMapper x) => called = true);
emptyHolder.Merge(holder);
emptyHolder.InvokeCustomizers(propertyPath, (IBagPropertiesMapper)null);
called.Should().Be.True();
}
示例3: MergeShouldMergeDynamicComponentAttributesMapper
public void MergeShouldMergeDynamicComponentAttributesMapper()
{
var emptyHolder = new CustomizersHolder();
var holder = new CustomizersHolder();
var called = false;
holder.AddCustomizer(propertyPath, (IDynamicComponentAttributesMapper x) => called = true);
emptyHolder.Merge(holder);
emptyHolder.InvokeCustomizers(propertyPath, (IDynamicComponentAttributesMapper)null);
called.Should().Be.True();
}
示例4: MergeShouldMergeComponentAttributesMapper
public void MergeShouldMergeComponentAttributesMapper()
{
var emptyHolder = new CustomizersHolder();
var holder = new CustomizersHolder();
var called = false;
holder.AddCustomizer(typeof(MyClass), (IComponentAttributesMapper x) => called = true);
emptyHolder.Merge(holder);
emptyHolder.InvokeCustomizers(typeof(MyClass), (IComponentAttributesMapper)null);
called.Should().Be.True();
}
示例5: MergeShouldMergeMapKeyManyToManyMapper
public void MergeShouldMergeMapKeyManyToManyMapper()
{
var emptyHolder = new CustomizersHolder();
var holder = new CustomizersHolder();
var called = false;
holder.AddCustomizer(propertyPath, (IMapKeyManyToManyMapper x) => called = true);
emptyHolder.Merge(holder);
emptyHolder.InvokeCustomizers(propertyPath, (IMapKeyManyToManyMapper)null);
called.Should().Be.True();
}
示例6: MergeShouldMergeUnionSubclassAttributesMapper
public void MergeShouldMergeUnionSubclassAttributesMapper()
{
var emptyHolder = new CustomizersHolder();
var holder = new CustomizersHolder();
var called = false;
holder.AddCustomizer(typeof(MyClass), (IUnionSubclassAttributesMapper x) => called = true);
emptyHolder.Merge(holder);
emptyHolder.InvokeCustomizers(typeof(MyClass), (IUnionSubclassAttributesMapper)null);
Assert.That(called, Is.True);
}
示例7: WhenMergeWithNullThenNotThrow
public void WhenMergeWithNullThenNotThrow()
{
var emptyHolder = new CustomizersHolder();
Assert.That(() => emptyHolder.Merge(null), Throws.Nothing);
}