public void Validate_When_Email_Is_Valid_Should_Return_True( EmployeeCreateModel employeeCreateModel, EmployeeCreateModelValidator sut) { employeeCreateModel.Email = "*****@*****.**"; sut.ShouldNotHaveValidationErrorFor(e => e.Email, employeeCreateModel); }
public void Validate_When_Department_Not_Is_Null_Or_Empty_Should_Return_True( EmployeeCreateModel employeeCreateModel, EmployeeCreateModelValidator sut) { employeeCreateModel.Department = "My Department"; sut.ShouldNotHaveValidationErrorFor(e => e.Department, employeeCreateModel); }
public void Validate_When_Name_Not_Is_Null_Or_Empty_Should_Return_True( EmployeeCreateModel employeeCreateModel, EmployeeCreateModelValidator sut) { employeeCreateModel.Name = "My name"; sut.ShouldNotHaveValidationErrorFor(e => e.Name, employeeCreateModel); }