public AirportControllerHandler(IAirportManager airportManager)
 {
     if (!airportManager.IsNullOrDefault())
     {
         m_AirportManager = airportManager;
     }
 }
 static FlightsController()
 {
     if (_airportManager == null)
     {
         _airportManager = new AirportManager();
     }
     if (_hubHelper == null)
     {
         _hubHelper = new HubHelper(_airportManager);
     }
 }
        public ServerService(IConverterProvider converterProvider, IDALService dalService,
                             AirportLoader airportLoader = AirportLoader.Load)
        {
            this.airportManager    = new AirportManager();
            this.converterProvider = converterProvider;
            this.dalService        = dalService;

            if (airportLoader == AirportLoader.CreateAndLoad)
            {
                CreateAirports();
            }

            ChangeInStateEvent += dalService.UpdateDatabase;
            ChangeInStateEvent += dalService.AddLogDatabase;
        }
 private void Init()
 {
     m_AirportManagerMock = Substitute.For<IAirportManager>();
 }
Exemple #5
0
 public AirportController(IAirportManager airportManager)
 {
     this.airportManager = airportManager;
 }
Exemple #6
0
 public AirportController(IAirportManager manager)
 {
     this.manager = manager;
 }
Exemple #7
0
 public AirportController(IAirportManager AirportManager)
 {
     //_salesVolumeManager = salesVolumeManager;
     _AirportManager = AirportManager;
 }