public void FDStaffNameALCatchesTooLongStaffNames() { var model = new SupplementaryDataLooseModel { StaffName = new string('1', 101) }; var rule = new FDStaffNameAL(); Assert.False(rule.Execute(model)); }
public void FDStaffNameALPassesValidStaffNames() { var model = new SupplementaryDataLooseModel { StaffName = new string('1', 100) }; var rule = new FDStaffNameAL(); Assert.True(rule.Execute(model)); }