Beispiel #1
0
        public void ProjectHoursRule01PassesNotNullOHoursForApportionedCostCostType()
        {
            var model = new SupplementaryDataModel
            {
                CostType     = Constants.CostTypeApportionedCost,
                ProjectHours = 12.0M
            };

            var rule = new ProjectHoursRule01();

            Assert.True(rule.Execute(model));
        }
Beispiel #2
0
        public void ProjectHoursRule01CatchesNullProjectHoursForApportionedCostCostType()
        {
            var model = new SupplementaryDataModel
            {
                CostType     = Constants.CostTypeApportionedCost,
                ProjectHours = null
            };

            var rule = new ProjectHoursRule01();

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