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;
 }
Beispiel #2
0
        public DataGenerator(string providerName, string connectionString)
        {
            var connectionFactory =
                new ConcreteConnectionFactory(DbUtil.GetProviderFactory(providerName), connectionString);
            var statementFactory = new StatementFactory("hurace");

            _countryDao    = new CountryDao(connectionFactory, statementFactory);
            _locationDao   = new LocationDao(connectionFactory, statementFactory);
            _skierDao      = new SkierDao(connectionFactory, statementFactory);
            _disciplineDao = new DisciplineDao(connectionFactory, statementFactory);
            _raceDao       = new RaceDao(connectionFactory, statementFactory);
            _startListDao  = new StartListDao(connectionFactory, statementFactory);
            _raceDataDao   = new RaceDataDao(connectionFactory, statementFactory);
            _sensorDao     = new SensorDao(connectionFactory, statementFactory);
            _timeDataDao   = new TimeDataDao(connectionFactory, statementFactory);
            _raceDataDao   = new RaceDataDao(connectionFactory, statementFactory);
            _raceEventDao  = new RaceEventDao(connectionFactory, statementFactory);
            _skierEventDao = new SkierEventDao(connectionFactory, statementFactory);
            _seasonDao     = new SeasonDao(connectionFactory, statementFactory);
        }