Ejemplo n.º 1
0
 public Program()
 {
     commandLine     = new ConsoleWrapper();
     cli             = new CommandLineInterface(commandLine);
     modelStore      = new AircraftModelStore();
     modelManager    = new AircraftModelManager(commandLine, modelStore);
     airplaneStore   = new AirplaneStore();
     airplaneManager = new AirplaneManager(commandLine, airplaneStore, modelManager);
     airportStore    = new AirportStore();
     airportManager  = new AirportManager(commandLine, airportStore, airplaneManager);
     flightStore     = new FlightStore();
     flightManager   = new FlightManager(commandLine, flightStore, airplaneManager, modelManager, airportManager);
 }
Ejemplo n.º 2
0
 public AirportManager(ICommandLine commandLine, AirportStore airportStore, AirplaneManager airplaneManager)
 {
     this.commandLine     = commandLine;
     this.airportStore    = airportStore;
     this.airplaneManager = airplaneManager;
 }