Example #1
0
        public void ProjectHoursRule02PassesNullProjectHoursForNonApportionedCostCostType()
        {
            var model = new SupplementaryDataModel
            {
                CostType     = "I don't need project hours",
                ProjectHours = null
            };

            var rule = new ProjectHoursRule02();

            Assert.True(rule.Execute(model));
        }
Example #2
0
        public void ProjectHoursRule02CatchesProjectHoursForNonApportionedCostCostType()
        {
            var model = new SupplementaryDataModel
            {
                CostType     = "I don't need project hours",
                ProjectHours = 12
            };

            var rule = new ProjectHoursRule02();

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