public void CalculateNumberOfFamilies_ForGivenSeatingConfig_Returns215() { var bookingSystem = new AirLineBooking.AirLineBookingSystem(40, "1A 3C 2B 40G 5A"); var numberOfFamilies = bookingSystem.CalculateNumberOfFamilies(); Assert.AreEqual(116, numberOfFamilies); }
public void CalculateNumberOfFamilies_ForGivenSeatingConfig_Returns150Families() { var bookingSystem = new AirLineBooking.AirLineBookingSystem(50, "50g"); var numberOfFamilies = bookingSystem.CalculateNumberOfFamilies(); Assert.AreEqual(150, numberOfFamilies); }
public void CalculateNumberOfFamilies_ForGivenSeatingConfig_Returns4Families() { var bookingSystem = new AirLineBooking.AirLineBookingSystem(2, "1A 2F 1C"); var numberOfFamilies = bookingSystem.CalculateNumberOfFamilies(); Assert.AreEqual(4, numberOfFamilies); }
public void CalculateNumberOfFamilies_ForGivenSeatingConfig_Returns12() { var bookingSystem = new AirLineBooking.AirLineBookingSystem(8, "1A 1D 1E 2C 2G 2H 2J 3D 4A 4J 5D 6E 6F 6J 7F 7J 8A 8B 8C 8D 8J"); var numberOfFamilies = bookingSystem.CalculateNumberOfFamilies(); Assert.AreEqual(12, numberOfFamilies); }