/// <summary> /// Creates a new instance of the /// <see cref="SpringAir.Data.Ado.FlightDao"/> class. /// </summary> /// <param name="aircraftDao"> /// The DAO used to retrieve information about the <see cref="SpringAir.Domain.Aircraft"/> /// associated with a <see cref="SpringAir.Domain.Flight"/>. /// </param> /// <exception cref="System.ArgumentNullException"> /// If the supplied <paramref name="aircraftDao"/> is <see lang="null"/>. /// </exception> public FlightDao(IAircraftDao aircraftDao) { if(aircraftDao == null) { throw new ArgumentNullException("aircraftDao"); } this.aircraftDao = aircraftDao; }
/// <summary> /// Creates a new instance of the /// <see cref="SpringAir.Data.Ado.FlightDao"/> class. /// </summary> /// <param name="aircraftDao"> /// The DAO used to retrieve information about the <see cref="SpringAir.Domain.Aircraft"/> /// associated with a <see cref="SpringAir.Domain.Flight"/>. /// </param> /// <exception cref="System.ArgumentNullException"> /// If the supplied <paramref name="aircraftDao"/> is <see lang="null"/>. /// </exception> public FlightDao(IAircraftDao aircraftDao) { if (aircraftDao == null) { throw new ArgumentNullException("aircraftDao"); } this.aircraftDao = aircraftDao; }
public FlightRowCallback(FlightCollection flights, IAircraftDao aircraftDao, Airport origin, Airport destination, DateTime departureDate) { this.flights = flights; this.aircraftDao = aircraftDao; this.origin = origin; this.destination = destination; this.departureDate = departureDate; }
/// <summary> /// Creates a new instance of the /// <see cref="SpringAir.Data.Ado.ItineraryDao"/> class. /// </summary> /// <param name="aircraftDao"> /// An appropriate implementation of the /// <see cref="SpringAir.Data.IAircraftDao"/> that this DAO /// can use to find <see cref="SpringAir.Domain.Aircraft"/> with. /// </param> /// <param name="airportDao"> /// An appropriate implementation of the /// <see cref="SpringAir.Data.IAirportDao"/> that this DAO /// can use to find <see cref="SpringAir.Domain.Airport"/> /// instances with. /// </param> /// <exception cref="System.ArgumentNullException"> /// If either of the supplied arguments is <cref lang="null"/>. /// </exception> public ItineraryDao(IAircraftDao aircraftDao, IAirportDao airportDao) { #region Sanity Checks if (aircraftDao == null) { throw new ArgumentNullException("aircraftDao", "The 'aircraftDao' argument is required."); } if (airportDao == null) { throw new ArgumentNullException("airportDao", "The 'airportDao' argument is required."); } #endregion this.aircraftDao = aircraftDao; this.airportDao = airportDao; }
public BookingAgentStub(IAirportDao airportDao, IAircraftDao aircraftDao) { this.airportDao = airportDao; this.aircraftDao = aircraftDao; }