Example #1
0
        public void HourlyRateRule01CatchesNullRatesForPartTimeStaffCostType()
        {
            var model = new SupplementaryDataModel
            {
                CostType   = Constants.CostTypeStaffPT,
                HourlyRate = null
            };

            var rule = new HourlyRateRule01();

            Assert.False(rule.Execute(model));
        }
Example #2
0
        public void HourlyRateRule01PassesNotNullRatesForPartTimeStaffCostType()
        {
            var model = new SupplementaryDataModel
            {
                CostType   = Constants.CostTypeStaffPT,
                HourlyRate = 12.0M
            };

            var rule = new HourlyRateRule01();

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