當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。