Exemplo n.º 1
0
        public void NoDiscount_WhenSinglePersonBooksFlight(int amountOfTravelers, double expectedDiscountPercentage)
        {
            var sut = new AirTravelCalculator();

            var actualDiscountPercentage = sut.CalculateDiscount(amountOfTravelers);

            Assert.Equal(expectedDiscountPercentage, actualDiscountPercentage);
        }
Exemplo n.º 2
0
        public void Discount10Pct_WhenGroupOfSixOrMoreBooksReturnFlight(int amountOfTravelers, bool isReturnFlightBooked, double expectedDiscountPercentage)
        {
            var sut = new AirTravelCalculator();

            var actualDiscountPercentage = sut.CalculateDiscount(amountOfTravelers, isReturnFlightBooked);

            Assert.Equal(expectedDiscountPercentage, actualDiscountPercentage);
        }
Exemplo n.º 3
0
        public void Discount5Pct_WhenGreaterThanFiveTravelers(int amountOfTravelers, double expectedDiscountPercentage)
        {
            var sut = new AirTravelCalculator();

            var actualDiscountPercentage = sut.CalculateDiscount(amountOfTravelers);

            Assert.Equal(expectedDiscountPercentage, actualDiscountPercentage);
        }