public void TotalHoursWorkedRule02PassesNullTotalHoursForNonStaffBasedCostType() { var model = new SupplementaryDataModel { CostType = "Don't need total", TotalHoursWorked = null }; var rule = new TotalHoursWorkedRule02(); Assert.True(rule.Execute(model)); }
public void TotalHoursWorkedRule02CatchesTotalHoursForNonStaffBasedCostType() { var model = new SupplementaryDataModel { CostType = "Don't need total", TotalHoursWorked = 30 }; var rule = new TotalHoursWorkedRule02(); Assert.False(rule.Execute(model)); }