public void CalculateBaseThrowsExceptionLessThanEqual0()
        {
            var calculator = new ProgressiveCalculator(_taxCalculatorRepository.GetProgressiveTaxTable());

            Assert.Throws <ArgumentOutOfRangeException>(() => calculator.DoCalculation(0));

            Assert.Throws <ArgumentOutOfRangeException>(() => calculator.DoCalculation(-1));
        }
        public void CalculateBaseProgressiveSalaryLastBracket()
        {
            var calculator = new ProgressiveCalculator(_taxCalculatorRepository.GetProgressiveTaxTable());

            var tax = calculator.DoCalculation(5000000);

            Assert.AreEqual(1727502.14M, tax);
        }
        public void CalculateBaseProgressiveSalary33950WithDecimal()
        {
            var calculator = new ProgressiveCalculator(_taxCalculatorRepository.GetProgressiveTaxTable());

            var tax = calculator.DoCalculation(33950.5M);

            Assert.AreEqual(4674.925M, tax);
        }
        public void CalculateBaseProgressiveSalary15000()
        {
            var calculator = new ProgressiveCalculator(_taxCalculatorRepository.GetProgressiveTaxTable());

            var tax = calculator.DoCalculation(15000);

            Assert.AreEqual(1832.35M, tax);
        }