public void ValueRule03PassesValueNotGreaterThanRateTimesHoursForPartTimeCostType() { var model = new SupplementaryDataModel { CostType = Constants.CostTypeStaffPT, HourlyRate = 10, TotalHoursWorked = 2, Value = 19.99M }; var rule = new ValueRule03(); Assert.True(rule.Execute(model)); }
public void ValueRule03CatchesValueGreaterThanRateTimesHoursForPartTimeCostType() { var model = new SupplementaryDataModel { CostType = Constants.CostTypeStaffPT, HourlyRate = 1, TotalHoursWorked = 1, Value = 20.00M }; var rule = new ValueRule03(); Assert.False(rule.Execute(model)); }