public void CourseType_IdentificationSpecification_IsNotSatisfied() { // Arrange var courseType = new CourseType() { Identification = "Ri" }; // Act var specificationReturn = new CourseTypeMustContainIdentificationSpecification().IsSatisfiedBy(courseType); // Assert Assert.IsFalse(specificationReturn); }
public CourseTypeIsConsistentValidation() { var courseTypeIdentification = new CourseTypeMustContainIdentificationSpecification(); Add("courseTypeIdentification", new Rule <CourseType>(courseTypeIdentification, "A identificação do Tipo de Curso deve conter no mínimo 3 caracteres.")); }