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