public void NoDiscount_WhenSinglePersonBooksFlight(int amountOfTravelers, double expectedDiscountPercentage) { var sut = new AirTravelCalculator(); var actualDiscountPercentage = sut.CalculateDiscount(amountOfTravelers); Assert.Equal(expectedDiscountPercentage, actualDiscountPercentage); }
public void Discount10Pct_WhenGroupOfSixOrMoreBooksReturnFlight(int amountOfTravelers, bool isReturnFlightBooked, double expectedDiscountPercentage) { var sut = new AirTravelCalculator(); var actualDiscountPercentage = sut.CalculateDiscount(amountOfTravelers, isReturnFlightBooked); Assert.Equal(expectedDiscountPercentage, actualDiscountPercentage); }
public void Discount5Pct_WhenGreaterThanFiveTravelers(int amountOfTravelers, double expectedDiscountPercentage) { var sut = new AirTravelCalculator(); var actualDiscountPercentage = sut.CalculateDiscount(amountOfTravelers); Assert.Equal(expectedDiscountPercentage, actualDiscountPercentage); }