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

            var rule = new ProjectHoursRule01();

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

            var rule = new ProjectHoursRule01();

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