Exemplo n.º 1
0
        public void Validate_When_Department_Is_Null_Or_Empty_Should_Return_False(
            EmployeeCreateModel employeeCreateModel,
            EmployeeCreateModelValidator sut)
        {
            employeeCreateModel.Department = null;

            sut.ShouldHaveValidationErrorFor(e => e.Department, employeeCreateModel);
        }
Exemplo n.º 2
0
        public void Validate_When_Email_Is_Invalid_Should_Return_False(
            EmployeeCreateModel employeeCreateModel,
            EmployeeCreateModelValidator sut)
        {
            employeeCreateModel.Email = "teste";

            sut.ShouldHaveValidationErrorFor(e => e.Email, employeeCreateModel);
        }