public void StaffNameRule01CatchesEmptyStaffNameForEmployeeIDReferenceType() { var model = new SupplementaryDataModel { ReferenceType = "Employee ID", StaffName = null }; var rule = new StaffNameRule01(); Assert.False(rule.Execute(model)); }
public void StaffNameRule01PassesStaffNameForEmployeeIDReferenceType() { var model = new SupplementaryDataModel { ReferenceType = "Employee ID", StaffName = "Mr Bob" }; var rule = new StaffNameRule01(); Assert.True(rule.Execute(model)); }