static void Main(string[] args) { Airline airline = new Airline(); airline.AddFlight(Convert.ToDateTime("20.07.2015 18:30:25"), true, 270, "Paris", 'D', 26, 5, 20.3, 5.6); airline.AddPassenger(270, "Jane", "Smith", "American", "AB123517", Convert.ToDateTime("25/03/1996"), 2, 2); airline.AddPassenger(270, "Alex", "Smith", "British", "DB127517", Convert.ToDateTime("17.03.1998"), 1, 2); airline.AddPassenger(270, "Maria", "Livesy", "Ukraine", "AC123517", Convert.ToDateTime("24/08/1991"), 2, 2); airline.AddFlight(Convert.ToDateTime("01.05.2019"), true, 54, "Rome", 'C', 15, 1, 5.8, 57.6); airline.AddPassenger(54, "Aaron", "Livesy", "British", "passport", Convert.ToDateTime("24/08/1991"), 1, 1); airline.AddPassenger(54, "Robert", "Sugden", "British", "passWord", Convert.ToDateTime("16.04.1970"), 1, 1); airline.AddFlight(Convert.ToDateTime("14.12.2018 18:30:25"), false, 14, "Barcelona", 'A', 7, 7, 6, 99); airline.AddPassenger(14, "Karolina", "Dingle", "Italian", "16750224", Convert.ToDateTime("6/8/1997"), 2, 2); airline.AddPassenger(14, "Adam", "Lambert", "American", "americanidol", Convert.ToDateTime("29.01.1987"), 1, 1); UI ui = new UI(airline); ui.DisplayAvailableFeatures(); }
static void Main() { Airline GrodnoAirline = new Airline(); Boeing777_300 bp1 = new Boeing777_300("Boeing777-300-101"); Boeing777_300 bp2 = new Boeing777_300("Boeing777-300-102"); An_124 an1 = new An_124("Ан-124-001"); An_124 an2 = new An_124("Ан-124-002"); Boeing747_400F bt1 = new Boeing747_400F("Boeing777-400F-201"); AirbusA380 ab1 = new AirbusA380("AirbusA380-201"); AirbusA380 ab2 = new AirbusA380("AirbusA380-202"); AirbusA380 ab3 = new AirbusA380("AirbusA380-203"); GrodnoAirline.BuyPlane(bp1); GrodnoAirline.BuyPlane(an1); GrodnoAirline.BuyPlane(bp2); GrodnoAirline.BuyPlane(an2); GrodnoAirline.BuyPlane(bt1); List<IPlane> airbus = new List<IPlane> { ab1, ab2, ab3}; GrodnoAirline.BuyPlanes(airbus); GrodnoAirline.ViewPlanes(); GrodnoAirline.PassengerCapacity(); GrodnoAirline.Carrying(); GrodnoAirline.SortByRangeFlight(); GrodnoAirline.FindPlaneInRangeFuelConsumption(15, 16); Console.ReadLine(); }
public UI(Airline airline) { this.airline = airline; }