public RaceController(IRaceService raceService, IRaceStartListService startListService,
                       IRaceStatService statService, IActiveRaceService activeRaceService)
 {
     _raceService       = raceService;
     _startListService  = startListService;
     _statService       = statService;
     _activeRaceService = activeRaceService;
 }
Exemple #2
0
 public ActiveRaceControlViewModel(SharedRaceStateViewModel raceState,
                                   IActiveRaceControlService activeRaceControlService, IRaceStartListService startListService,
                                   Func <IActiveRaceControlService, CurrentSkierViewModel> currentSkierVmFactory,
                                   Func <IActiveRaceControlService, RankingViewModel> rankingVmFactory, IActiveRaceService activeRaceService)
 {
     RaceState = raceState;
     _activeRaceControlService = activeRaceControlService;
     _startListService         = startListService;
     _activeRaceService        = activeRaceService;
     CurrentSkierViewModel     = currentSkierVmFactory(_activeRaceControlService);
     RankingViewModel          = rankingVmFactory(_activeRaceControlService);
     SetupCommands();
 }
 public ActiveRaceControlService(int raceId, IRaceDao raceDao, IStartListDao startListDao,
                                 IRaceEventDao raceEventDao, IRaceDataDao raceDataDao, ISkierEventDao skierEventDao,
                                 ITimeDataDao timeDataDao, ISensorDao sensorDao,
                                 IRaceClockProvider raceClockProvider, SensorConfig sensorConfig, IActiveRaceService activeRaceService)
 {
     RaceId             = raceId;
     _raceClockProvider = raceClockProvider;
     _sensorConfig      = sensorConfig;
     _activeRaceService = activeRaceService;
     _raceDao           = raceDao;
     _startListDao      = startListDao;
     _raceEventDao      = raceEventDao;
     _raceDataDao       = raceDataDao;
     _skierEventDao     = skierEventDao;
     _timeDataDao       = timeDataDao;
     _sensorDao         = sensorDao;
 }