Пример #1
0
 public void AssertMoreThanOneClient(long count)
 {
     if (count == 1)
     {
         IValidationContext context = this.ContextFactory.GetNew();
         context.Fail("Cannot delete the only client");
         context.Assert();
     }
 }
Пример #2
0
 public void AssertClientExists(Client item)
 {
     if (item == null)
     {
         IValidationContext context = this.ContextFactory.GetNew();
         context.Fail("Client does not exist");
         context.Assert();
     }
 }