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


C# ChangeTrackingService.Suspend方法代码示例

本文整理汇总了C#中Topics.Radical.ChangeTracking.ChangeTrackingService.Suspend方法的典型用法代码示例。如果您正苦于以下问题:C# ChangeTrackingService.Suspend方法的具体用法?C# ChangeTrackingService.Suspend怎么用?C# ChangeTrackingService.Suspend使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Topics.Radical.ChangeTracking.ChangeTrackingService的用法示例。


在下文中一共展示了ChangeTrackingService.Suspend方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: after_resume_isSuspended_is_false

        public void after_resume_isSuspended_is_false()
        {
            ChangeTrackingService svc = new ChangeTrackingService();
            svc.Suspend();
            svc.Resume();

            Assert.IsFalse( svc.IsSuspended );
        }
开发者ID:RadicalFx,项目名称:Radical,代码行数:8,代码来源:EntityChangeTrackingServiceTests.cs

示例2: after_resume_service_restart_tracking_changes

        public void after_resume_service_restart_tracking_changes()
        {
            ChangeTrackingService svc = new ChangeTrackingService();

            Person p = new Person( svc, false );

            svc.Suspend();
            svc.Resume();

            p.Name = "Mauro";

            Assert.IsTrue( svc.IsChanged );
        }
开发者ID:RadicalFx,项目名称:Radical,代码行数:13,代码来源:EntityChangeTrackingServiceTests.cs

示例3: after_suspend_isSuspended_is_true

        public void after_suspend_isSuspended_is_true()
        {
            ChangeTrackingService svc = new ChangeTrackingService();
            svc.Suspend();

            Assert.IsTrue( svc.IsSuspended );
        }
开发者ID:RadicalFx,项目名称:Radical,代码行数:7,代码来源:EntityChangeTrackingServiceTests.cs

示例4: after_suspend_cannot_call_UnregisterTransient

        public void after_suspend_cannot_call_UnregisterTransient()
        {
            ChangeTrackingService svc = new ChangeTrackingService();

            Person p = new Person( svc );

            svc.Suspend();
            svc.UnregisterTransient( p );
        }
开发者ID:RadicalFx,项目名称:Radical,代码行数:9,代码来源:EntityChangeTrackingServiceTests.cs

示例5: after_suspend_cannot_call_RejectChanges

        public void after_suspend_cannot_call_RejectChanges()
        {
            ChangeTrackingService svc = new ChangeTrackingService();

            Person p = new Person( svc );
            p.Name = "Mauro";

            svc.Suspend();
            svc.RejectChanges();
        }
开发者ID:RadicalFx,项目名称:Radical,代码行数:10,代码来源:EntityChangeTrackingServiceTests.cs

示例6: after_suspend_cannot_call_RegisterTransient_with_explicit_autoRemove_false

        public void after_suspend_cannot_call_RegisterTransient_with_explicit_autoRemove_false()
        {
            ChangeTrackingService svc = new ChangeTrackingService();

            Person p = new Person( svc, false );
            svc.Suspend();
            svc.RegisterTransient( p, false );
        }
开发者ID:RadicalFx,项目名称:Radical,代码行数:8,代码来源:EntityChangeTrackingServiceTests.cs

示例7: after_suspend_no_more_changes_can_be_added

        public void after_suspend_no_more_changes_can_be_added()
        {
            RejectCallback<String> cb = cv => { };
            Object fakeOwner = new Object();
            String change = String.Empty;
            PropertyValueChange<String> stub = new PropertyValueChange<string>( fakeOwner, "property-name", change, cb );

            ChangeTrackingService svc = new ChangeTrackingService();
            svc.Suspend();

            svc.Add( stub, AddChangeBehavior.RedoRequest );
        }
开发者ID:RadicalFx,项目名称:Radical,代码行数:12,代码来源:EntityChangeTrackingServiceTests.cs

示例8: using

		public void entityMemento_ctor_requesting_transient_registration_using_base_iMemento_to_suspended_memento_do_not_register_entity_as_transient()
		{
			EntityTrackingStates expected = EntityTrackingStates.None;
			using( var svc = new ChangeTrackingService() )
			{
				svc.Suspend();

				var target = this.CreateMock( true );
				( ( IMemento )target ).Memento = svc;

				EntityTrackingStates actual = svc.GetEntityState( target );

				actual.Should().Be.EqualTo( expected );
			}
		}
开发者ID:nazarenomanco,项目名称:Radical,代码行数:15,代码来源:EntityMementoTests.cs


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