Exemple #1
0
        public void CalculatesFlatRates()
        {
            var rule           = new FlatRateDeductionRule("TestRule", .25m);
            var amountDeducted = rule.Apply(600m);

            Assert.AreEqual(150m, amountDeducted);
        }
        public void Init()
        {
            var deductionRule = new FlatRateDeductionRule("TestDeduction", 0.25m);

            generator = new IncomeReportGenerator(new List <IDeductionRule> {
                deductionRule
            });
        }