示例#1
0
        public void OrgHoursRule01PassesNotNullOrgHoursForApportionedCostCostType()
        {
            var model = new SupplementaryDataModel
            {
                CostType = Constants.CostTypeApportionedCost,
                OrgHours = 12.0M
            };

            var rule = new OrgHoursRule01();

            Assert.True(rule.Execute(model));
        }
示例#2
0
        public void OrgHoursRule01CatchesNullOrgHoursForApportionedCostCostType()
        {
            var model = new SupplementaryDataModel
            {
                CostType = Constants.CostTypeApportionedCost,
                OrgHours = null
            };

            var rule = new OrgHoursRule01();

            Assert.False(rule.Execute(model));
        }