Esempio n. 1
0
        public void LATTest()
        {
            //Arrange
            var taxesCalculator = new TaxesCalculator();

            //Act
            decimal lat = taxesCalculator.GetISH(1550.00m, 0.03m);

            //Assert
            //LAT% = 3%
            //Reservation Amount = 1550
            //1550.00 * 0.03 = 46.50

            Assert.AreEqual(46.50m, lat);
        }
Esempio n. 2
0
        public void TotalReservationAmountTest()
        {
            //Arrange
            var taxesCalculator = new TaxesCalculator();

            //Act
            decimal vat = taxesCalculator.GetIVA(1550.00m);
            decimal lat = taxesCalculator.GetISH(1550.00m, 0.03m);
            decimal totalReservationAmount = taxesCalculator.GetTotalReservationAmount(vat, lat, 1550m);

            //Assert
            //VAT = 248
            //LAT = 46.5
            //Reservation Amount = 1550
            //1550.00 + 248 + 46.5 = 1844.5

            Assert.AreEqual(1844.5m, totalReservationAmount);
        }