Example #1
0
 public Reservation(Passenger passenger, Itinerary itinerary)//, IDictionary flightSeats)
 {
     this.passenger = passenger;
     this.itinerary = itinerary;
     //this.flightSeats = flightSeats;
 }
		private void BookFlights(object sender, EventArgs e)
		{
//			if(Validate(this, flightsValidator)) 
//			{
				FlightCollection flightsToBook = GetFlightsToBook();
				Itinerary itinerary = new Itinerary(flightsToBook);
				// TODO: forward to next logical page and get user details...
				ReservationConfirmation confirmation = bookingAgent.Book(
					new Reservation(new Passenger(1, "Aleksandar", "Seovic"), itinerary));
				Session[Constants.ReservationConfirmationKey] = confirmation;
				SetResult(ReservationConfirmed);
//			} 
//			else 
//			{
//				this.outboundFlightIndex = NoFlightSelected;
//				this.returnFlightIndex = NoFlightSelected;
//			}
		}
Example #3
0
 public Reservation(Passenger passenger, Itinerary itinerary)//, IDictionary flightSeats)
 {
     this.passenger = passenger;
     this.itinerary = itinerary;
     //this.flightSeats = flightSeats;
 }