本文整理匯總了C#中Topics.Radical.ChangeTracking.ChangeTrackingService.Validate方法的典型用法代碼示例。如果您正苦於以下問題:C# ChangeTrackingService.Validate方法的具體用法?C# ChangeTrackingService.Validate怎麽用?C# ChangeTrackingService.Validate使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Topics.Radical.ChangeTracking.ChangeTrackingService
的用法示例。
在下文中一共展示了ChangeTrackingService.Validate方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: service_validate_a_bookmark_invalid_is_false
public void service_validate_a_bookmark_invalid_is_false()
{
ChangeTrackingService svc = new ChangeTrackingService();
Person p = new Person( svc );
p.Name = "Mauro";
var bmk = svc.CreateBookmark();
svc.Undo();
Assert.IsFalse( svc.Validate( bmk ) );
}
示例2: service_validate_a_valid_bookmark_is_true
public void service_validate_a_valid_bookmark_is_true()
{
RejectCallback<String> cb = cv => { };
Object fakeOwner = new Object();
String change = String.Empty;
IChange expected = new PropertyValueChange<String>( fakeOwner, "property-name", change, cb );
ChangeTrackingService svc = new ChangeTrackingService();
svc.Add( expected, AddChangeBehavior.RedoRequest );
var bmk = svc.CreateBookmark();
Assert.IsTrue( svc.Validate( bmk ) );
}
示例3: service_validate_a_bookmark_owned_by_another_service_is_false
public void service_validate_a_bookmark_owned_by_another_service_is_false()
{
ChangeTrackingService svc1 = new ChangeTrackingService();
var bmk = svc1.CreateBookmark();
ChangeTrackingService svc2 = new ChangeTrackingService();
Assert.IsFalse( svc2.Validate( bmk ) );
}
示例4: service_cannot_validate_a_null_bookmark
public void service_cannot_validate_a_null_bookmark()
{
ChangeTrackingService svc = new ChangeTrackingService();
svc.Validate( null );
}