예제 #1
0
        public void CourseType_IdentificationSpecification_IsNotSatisfied()
        {
            // Arrange
            var courseType = new CourseType()
            {
                Identification = "Ri"
            };

            // Act
            var specificationReturn = new CourseTypeMustContainIdentificationSpecification().IsSatisfiedBy(courseType);

            // Assert
            Assert.IsFalse(specificationReturn);
        }
예제 #2
0
        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."));
        }