public StationsViewModel(IStationsService service) { this.StationsService = service; // Load(); // SelectedStation = Stations.Last(); }
protected ServiceBaseImpl() { try { StationsService = BrokerService.Container.Resolve <IStationsService>(); } catch (Exception ex) { } }
public AirportHub() { if (!dbLoaded) { repository = dbManager.InitializeDb().Result; dbLoaded = true; scheduleManager = new ScheduleManager(repository); planesManager = new PlanesManager(repository); stationsManager = new StationsManager(repository, planesManager); simulator = new AirportSimulator(planesManager, scheduleManager); } }
public StationsViewModel() { stationsService = new MockStationsService(); this.Stations = new ObservableCollection<Station>(); }
public DistanceController(IStationsService service) { this.stationcService = (StationsService)service; }
public StationsApiController(IStationsService stationsService) { _stationsService = stationsService; }
public StationsViewModel(IRegionsService regionsService, IStationsService stationsService) { _RegionService = regionsService; _Service = stationsService; }
public MockRegionsService(IStationsService stationsService) { // _Regions.First().Stations = new ObservableCollection<Station>(stationsService.Get()); }
//public StationsController() // : this(new MockStationsService()) //{ //} public StationsController(IStationsService stationsService) { this.stationService = stationsService; }