public void StaffNameRule02PassesValidStaffNames() { var model = new SupplementaryDataModel { StaffName = @"Aa0.,;:~!”@#$&’()/+-<=>[]{}^£€" }; var rule = new StaffNameRule02(); Assert.True(rule.Execute(model)); }
public void StaffNameRule02CatchesRegexViolations() { var model = new SupplementaryDataModel { StaffName = "|~" }; var rule = new StaffNameRule02(); Assert.False(rule.Execute(model)); }