Exemple #1
0
        public void TotalHoursWorkedRule02PassesNullTotalHoursForNonStaffBasedCostType()
        {
            var model = new SupplementaryDataModel
            {
                CostType         = "Don't need total",
                TotalHoursWorked = null
            };

            var rule = new TotalHoursWorkedRule02();

            Assert.True(rule.Execute(model));
        }
Exemple #2
0
        public void TotalHoursWorkedRule02CatchesTotalHoursForNonStaffBasedCostType()
        {
            var model = new SupplementaryDataModel
            {
                CostType         = "Don't need total",
                TotalHoursWorked = 30
            };

            var rule = new TotalHoursWorkedRule02();

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