public void CustomerFacade_GetAllFlights_FlightsReceived()
 {
     AddToLogFile("run CustomerFacade GetAllFlights");
     InitDBUnitTest.InitDB();
     IList<Flight> flights1 = null;
     IList<Flight> flights2 = null;
     AdministratorFacade_CreateNewCustomer();
     Flight flight = AirlineCompanyFacadeFacade_CreateNewFlight1();
     ILoggedInCustomerFacade customerFacade = GetCustomerFacade(out LoginToken<Customer> tCustomer);
     flights1 = customerFacade.GetAllFlights(tCustomer);
     flights2 = new List<Flight>();
     flights2.Add(flight);
     List<Flight> f1 = (List<Flight>)flights1;
     List<Flight> f2 = (List<Flight>)flights2;
     CollectionAssert.AreEqual(f1, f2);
     Assert.AreEqual(flights1[0].ID, flights2[0].ID);
     Assert.AreEqual(flights1[0].AIRLINECOMPANY_ID, flights2[0].AIRLINECOMPANY_ID);
     Assert.AreEqual(flights1[0].ORIGIN_COUNTRY_CODE, flights2[0].ORIGIN_COUNTRY_CODE);
     Assert.AreEqual(flights1[0].DESTINATION_COUNTRY_CODE, flights2[0].DESTINATION_COUNTRY_CODE);
     Assert.AreEqual(flights1[0].DEPARTURE_TIME, flights2[0].DEPARTURE_TIME);
     Assert.AreEqual(flights1[0].LANDING_TIME, flights2[0].LANDING_TIME);
     Assert.AreEqual(flights1[0].REMANING_TICKETS, flights2[0].REMANING_TICKETS);
     Assert.AreEqual(flights1[0].TOTAL_TICKETS, flights2[0].TOTAL_TICKETS);
 }