コード例 #1
0
        public void TotalHoursWorkedRule01PassesTotalHoursForStaffBasedCostType()
        {
            var model = new SupplementaryDataModel
            {
                CostType         = Constants.CostTypeStaffFT,
                TotalHoursWorked = 30
            };

            var rule = new TotalHoursWorkedRule01();

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

            var rule = new TotalHoursWorkedRule01();

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