public void ProjectHoursRule01PassesNotNullOHoursForApportionedCostCostType() { var model = new SupplementaryDataModel { CostType = Constants.CostTypeApportionedCost, ProjectHours = 12.0M }; var rule = new ProjectHoursRule01(); Assert.True(rule.Execute(model)); }
public void ProjectHoursRule01CatchesNullProjectHoursForApportionedCostCostType() { var model = new SupplementaryDataModel { CostType = Constants.CostTypeApportionedCost, ProjectHours = null }; var rule = new ProjectHoursRule01(); Assert.False(rule.Execute(model)); }