示例#1
0
 public AirportController(IAirport airport)
 {
     tripRegistrationNumber = 1;
     this.airport           = airport;
     this.airplaneFactory   = new AirplaneFactory();
     this.itemFactory       = new ItemFactory();
 }
        public AirportController(IAirport airport)
        {
            this.airport = airport;

            this.airplaneFactory = new AirplaneFactory();
            this.itemFactory     = new ItemFactory();
        }
示例#3
0
 public AirportController(IAirport airport)
 {
     this.airport          = airport;
     this.airplaneFactory  = new AirplaneFactory();
     this.itemFactory      = new ItemFactory();
     this.passengerFactory = new PassengerFactory();
     this.tripFactory      = new TripFactory();
 }
 public AirportController(IAirport airport, IAirplaneFactory airplaneFactory, IItemFactory itemFactory)
 {
     this.airport         = airport;
     this.airplaneFactory = airplaneFactory;
     this.itemFactory     = itemFactory;
 }
示例#5
0
 public AirplaneHandler(IAirplaneRepository repository, IAirplaneFactory factory)
 {
     _repository = repository;
     _factory    = factory;
 }
示例#6
0
 public AddAirplaneHandler(IAirplaneFactory factory, IAirplaneRepository airplaneRepository, IAircraftTypeRepository aircraftTypeRepository)
 {
     _factory                = factory;
     _airplaneRepository     = airplaneRepository;
     _aircraftTypeRepository = aircraftTypeRepository;
 }