예제 #1
0
 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 FilghtsController(IFlightRepository flightRepository, IFlightServices flightServices)
 {
     _flightRepository = flightRepository;
     _flightServices   = flightServices;
 }
예제 #3
0
 public FlightController(IFlightServices flightService)
 {
     this._flightService = flightService;
 }
예제 #4
0
 public FlightsController(IFlightServices flightServices)
 {
     _flightServices = flightServices;
 }