Пример #1
0
        public void Check_Tax_Band_Two_Income_Tax()
        {
            #region Arrange

            var bandTwo = new TaxBandTwo();

            #endregion

            #region Act

            var amount1 = bandTwo.Calculate(18200);
            var amount2 = bandTwo.Calculate(18201);
            var amount3 = bandTwo.Calculate(18203);
            var amount4 = bandTwo.Calculate(37000);
            var amount5 = bandTwo.Calculate(37001);

            #endregion

            #region Assert

            Assert.AreEqual(0, amount1);
            Assert.AreEqual(0, amount2);
            Assert.AreEqual(0, amount3);
            Assert.AreEqual(298, amount4);
            Assert.AreEqual(298, amount5);

            #endregion
        }
Пример #2
0
        public void Check_Tax_Band_Two_Pay_Amount_Over_LowerLimit()
        {
            #region Arrange

            var bandTwo = new TaxBandTwo();

            #endregion

            #region Act

            var amount1 = bandTwo.GetPayAmountOverLowerLimit(18200);
            var amount2 = bandTwo.GetPayAmountOverLowerLimit(18201);
            var amount3 = bandTwo.GetPayAmountOverLowerLimit(37000);
            var amount4 = bandTwo.GetPayAmountOverLowerLimit(37001);

            #endregion

            #region Assert

            Assert.AreEqual(0, amount1);
            Assert.AreEqual(1, amount2);
            Assert.AreEqual(18800, amount3);
            Assert.AreEqual(18800, amount4);

            #endregion
        }