public SeatsManagementPresenter( ISeatsManagementView view, ILegInstancesServices legInstancesServices, ISeatsServices seatsServices, ITravelClassesServices travelClassesServices) : base(view) { if (legInstancesServices == null) { throw new ArgumentNullException(nameof(ILegInstancesServices)); } if (seatsServices == null) { throw new ArgumentNullException(nameof(ISeatsServices)); } if (travelClassesServices == null) { throw new ArgumentNullException(nameof(ITravelClassesServices)); } this.legInstancesServices = legInstancesServices; this.seatsServices = seatsServices; this.travelClassesServices = travelClassesServices; this.View.OnSeatsGetData += this.View_OnSeatsGetData; this.View.OnSeatsUpdateItem += this.View_OnSeatsUpdateItem; this.View.OnSeatsDeleteItem += this.View_OnSeatsDeleteItem; this.View.OnSeatsAddItem += this.View_OnSeatsAddItem; this.View.OnTravelClassesGetData += this.View_OnTravelClassesGetData; this.View.OnLegInstancesGetData += this.View_OnLegInstancesGetData; this.View.OnTravelClassInfoGetItem += this.View_OnTravelClassInfoGetItem; }
public FlightLegsManagementPresenter( IFlightLegsManagementView view, IFlightLegsServices flightLegsServices, IAirportsServices airportsServices, IFlightsServices flightsServices, IRoutesServices routesServices, ILegInstancesServices legInstancesServices) : base(view) { if (flightLegsServices == null) { throw new ArgumentNullException(nameof(IFlightLegsServices)); } if (airportsServices == null) { throw new ArgumentNullException(nameof(IAirportsServices)); } if (flightsServices == null) { throw new ArgumentNullException(nameof(IFlightsServices)); } if (routesServices == null) { throw new ArgumentNullException(nameof(IRoutesServices)); } if (legInstancesServices == null) { throw new ArgumentNullException(nameof(ILegInstancesServices)); } this.flightLegsServices = flightLegsServices; this.airportsServices = airportsServices; this.flightLegsServices = flightLegsServices; this.flightsServices = flightsServices; this.routesServices = routesServices; this.legInstancesServices = legInstancesServices; this.View.OnFlightLegsGetData += this.View_OnFlightLegsGetData; this.View.OnFlightLegsUpdateItem += this.View_OnFlightLegsUpdateItem; this.View.OnFlightLegsDeleteItem += this.View_OnFlightLegsDeleteItem; this.View.OnFlightLegsAddItem += this.View_OnFlightLegsAddItem; this.View.OnAirportsGetData += this.View_OnAirportsGetData; this.View.OnFlightsGetData += this.View_OnFlightsGetData; this.View.OnRoutesGetData += this.View_OnRoutesGetData; this.View.OnLegInstancesGetData += this.View_OnLegInstancesGetData; this.View.OnAirportGetItem += this.View_OnAirportGetItem; }
public FlightsController(ILegInstancesServices legInstancesServices) { this.legInstancesServices = legInstancesServices; }
public LegInstancesManagementPresenter( ILegInstancesManagementView view, ILegInstancesServices legInstancesServices, IFlightLegsServices flightLegsServices, IFlightStatusesServices flightStatusesServices, IFaresServices faresServices, IAircraftsServices aircraftsServices, IUserNotificationsServices userNotificationsServices, INotificationsServices notificationsServices, IUsersServices usersServices, IAirportsServices airportsServices) : base(view) { if (legInstancesServices == null) { throw new ArgumentNullException(nameof(ILegInstancesServices)); } if (flightLegsServices == null) { throw new ArgumentNullException(nameof(IFlightLegsServices)); } if (flightLegsServices == null) { throw new ArgumentNullException(nameof(IFlightStatusesServices)); } if (aircraftsServices == null) { throw new ArgumentNullException(nameof(IAircraftsServices)); } if (faresServices == null) { throw new ArgumentNullException(nameof(IFaresServices)); } if (userNotificationsServices == null) { throw new ArgumentNullException(nameof(IUserNotificationsServices)); } if (notificationsServices == null) { throw new ArgumentNullException(nameof(INotificationsServices)); } if (usersServices == null) { throw new ArgumentNullException(nameof(IUsersServices)); } if (aircraftsServices == null) { throw new ArgumentNullException(nameof(IAirportsServices)); } this.legInstancesServices = legInstancesServices; this.flightLegsServices = flightLegsServices; this.flightStatusesServices = flightStatusesServices; this.aircraftsServices = aircraftsServices; this.faresServices = faresServices; this.userNotificationsServices = userNotificationsServices; this.notificationsServices = notificationsServices; this.usersServices = usersServices; this.airportsServices = airportsServices; this.View.OnLegInstancesGetData += this.View_OnLegInstancesGetData; this.View.OnLegInstancesUpdateItem += this.View_OnLegInstancesUpdateItem; this.View.OnLegInstancesDeleteItem += this.View_OnLegInstancesDeleteItem; this.View.OnLegInstancesAddItem += this.View_OnLegInstancesAddItem; this.View.OnFlightLegsGetData += this.View_OnFlightLegsGetData; this.View.OnFlightStatusesGetData += this.View_OnFlightStatusesGetData; this.View.OnAircraftsGetData += this.View_OnAircraftsGetData; this.View.OnFaresGetData += this.View_OnFaresGetData; this.View.OnAirportInfoGetItem += this.View_OnAirportInfoGetItem; this.View.OnSendNotificationToSubscribedUsers += this.View_OnSendNotificationToSubscribedUsers; }