public void TestValidateUpdate_ShouldThrowException_NoErrors() { var testValidator = new BusinessValidatorBaseTestClass(true, false); var results = testValidator.ValidateUpdate(new UpdateTest()); Assert.AreEqual(0, results.ToList().Count); }
public void TestValidateCreate_ShouldNotThrowException_HasErrors() { var testValidator = new BusinessValidatorBaseTestClass(false, true); var results = testValidator.ValidateCreate(new CreateTest()); Assert.AreEqual(1, results.ToList().Count); }
public void TestValidateUpdate_ShouldThrowException_HasErrors() { var testValidator = new BusinessValidatorBaseTestClass(true, true); testValidator.ValidateUpdate(new UpdateTest()); }