public void Remove_Flight() { Execute_Test(() => { Flight demi_flight = TestData.Get_Flights_Data()[0]; long flight_id = airline_facade.CreateFlight(airline_token, demi_flight); demi_flight.Id = flight_id; airline_facade.CancelFlight(airline_token, demi_flight); Assert.AreEqual(airline_facade.GetAllFlights(airline_token).Count, 2); FlightHistory flightHistory = airline_facade.GetFlightHistoryByOriginalId(airline_token, flight_id); Assert.AreEqual(flightHistory.Id, 1); Assert.AreEqual(flightHistory.AirlineCompanyId, demi_flight.AirlineCompany.Id); Assert.AreEqual(flightHistory.AirlineCompanyName, demi_flight.AirlineCompany.Name); TestData.CompareDates(flightHistory.DepartureTime, demi_flight.DepartureTime); TestData.CompareDates(flightHistory.LandingTime, demi_flight.LandingTime); Assert.AreEqual(flightHistory.OriginCountryId, demi_flight.OriginCountryId); Assert.AreEqual(flightHistory.DestinationCountryId, demi_flight.DestinationCountryId); Assert.AreEqual(flightHistory.RemainingTickets, demi_flight.RemainingTickets); Assert.AreEqual(flightHistory.FlightStatus, FlightStatus.Cancelled_By_Company); }); }