当前位置: 首页>>代码示例>>C#>>正文


C# CustomizersHolder.Merge方法代码示例

本文整理汇总了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);
		}
开发者ID:marchlud,项目名称:nhibernate-core,代码行数:12,代码来源:CustomizerHolderMergeTest.cs

示例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();
		}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:12,代码来源:CustomizerHolderMergeTest.cs

示例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();
		}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:12,代码来源:CustomizerHolderMergeTest.cs

示例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();
		}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:12,代码来源:CustomizerHolderMergeTest.cs

示例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();
		}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:12,代码来源:CustomizerHolderMergeTest.cs

示例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);
		}
开发者ID:marchlud,项目名称:nhibernate-core,代码行数:12,代码来源:CustomizerHolderMergeTest.cs

示例7: WhenMergeWithNullThenNotThrow

		public void WhenMergeWithNullThenNotThrow()
		{
			var emptyHolder = new CustomizersHolder();
			Assert.That(() => emptyHolder.Merge(null), Throws.Nothing);
		}
开发者ID:marchlud,项目名称:nhibernate-core,代码行数:5,代码来源:CustomizerHolderMergeTest.cs


注:本文中的CustomizersHolder.Merge方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。