public void OrgHoursRule01PassesNotNullOrgHoursForApportionedCostCostType() { var model = new SupplementaryDataModel { CostType = Constants.CostTypeApportionedCost, OrgHours = 12.0M }; var rule = new OrgHoursRule01(); Assert.True(rule.Execute(model)); }
public void OrgHoursRule01CatchesNullOrgHoursForApportionedCostCostType() { var model = new SupplementaryDataModel { CostType = Constants.CostTypeApportionedCost, OrgHours = null }; var rule = new OrgHoursRule01(); Assert.False(rule.Execute(model)); }