public void Validate_business_entitys_ID_property_with_mocked_validation_rule_should_be_valid() { var entity = new TestValidEntity(); Assert.IsTrue(entity.ValidatePropertyByName("Id")); Assert.IsTrue(entity.ValidationErrors.Count == 0); }
public void Validate_business_entitys_Name_property_without_business_rule_attached_to_it_should_be_valid() { var entity = new TestValidEntity(); Assert.IsTrue(entity.ValidatePropertyByName("Name")); }