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); }
public SeasonService(ISeasonDao seasonDao, IRaceDao raceDao) { _seasonDao = seasonDao; _raceDao = raceDao; }