private Reservation CreateReservation(Traveler traveler, Location source, Location destination, DateTime start, string confirmationCode) { var departureSchedule = Flights .GetFlightSchedules(source, destination, start, start.AddDays(7)) .First(); var returnSchedule = Flights .GetFlightSchedules(destination, source, departureSchedule.Departure.AddDays(1), departureSchedule.Departure.AddDays(8)) .First(); var reservation = new Reservation { ReservationDate = start, DepartureFlight = new Trip { FlightInfo = departureSchedule, Status = FlightStatus.Confirmed, Class = SeatClass.Economy }, ReturnFlight = new Trip { FlightInfo = returnSchedule, Status = FlightStatus.Confirmed, Class = SeatClass.Economy }, ConfirmationCode = confirmationCode, TravelerId = traveler.TravelerId }; return(reservation); }