public FlightsController(IFlightServices flightServices, IAirportServices airportServices, IAircraftServices aircraftServices) { _flightServices = flightServices ?? throw new ArgumentNullException("flightServices"); _airportServices = airportServices ?? throw new ArgumentNullException("airportServices"); _aircraftServices = aircraftServices ?? throw new ArgumentNullException("aircraftServices"); }
public FlightService(IFlightRepository flightRepository, IAirportServices airportServices) { _flightRepository = flightRepository; _airportService = airportServices; }