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); }
public void Validate_When_Email_Is_Invalid_Should_Return_False( EmployeeCreateModel employeeCreateModel, EmployeeCreateModelValidator sut) { employeeCreateModel.Email = "teste"; sut.ShouldHaveValidationErrorFor(e => e.Email, employeeCreateModel); }