public void HourlyRateRule01CatchesNullRatesForPartTimeStaffCostType() { var model = new SupplementaryDataModel { CostType = Constants.CostTypeStaffPT, HourlyRate = null }; var rule = new HourlyRateRule01(); Assert.False(rule.Execute(model)); }
public void HourlyRateRule01PassesNotNullRatesForPartTimeStaffCostType() { var model = new SupplementaryDataModel { CostType = Constants.CostTypeStaffPT, HourlyRate = 12.0M }; var rule = new HourlyRateRule01(); Assert.True(rule.Execute(model)); }