public void TotalHoursWorkedRule01PassesTotalHoursForStaffBasedCostType() { var model = new SupplementaryDataModel { CostType = Constants.CostTypeStaffFT, TotalHoursWorked = 30 }; var rule = new TotalHoursWorkedRule01(); Assert.True(rule.Execute(model)); }
public void TotalHoursWorkedRule01CatchesNullTotalHoursForStaffBasedCostType() { var model = new SupplementaryDataModel { CostType = Constants.CostTypeStaffFT, TotalHoursWorked = null }; var rule = new TotalHoursWorkedRule01(); Assert.False(rule.Execute(model)); }