public DaoProvider(ICountryDao countryDao, ILocationDao locationDao, IRaceDao raceDao, IRunDao runDao, ISensorMeasurementDao sensorMeasurementDao, ISkierDao skierDao) { CountryDao = countryDao; LocationDao = locationDao; RaceDao = raceDao; RunDao = runDao; SensorMeasurementDao = sensorMeasurementDao; SkierDao = skierDao; }
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 static DaoProvider GetPartialDaoProvider(ICountryDao countryDao = null, ILocationDao locationDao = null, IRaceDao raceDao = null, IRunDao runDao = null, ISensorMeasurementDao sensorMeasurementDao = null, ISkierDao skierDao = null) { // var connectionFactory = new ConnectionFactory(Environment.Testing); // // ICountryDao countryDao = new CountryDao(connectionFactory); // ILocationDao locationDao = new LocationDao(connectionFactory); // IRaceDao raceDao = new RaceDao(connectionFactory); // IRunDao runDao = new RunDao(connectionFactory); // ISensorMeasurementDao sensorMeasurementDao = new SensorMeasurementDao(connectionFactory); // ISkierDao skierDao = new SkierDao(connectionFactory); return(new DaoProvider(countryDao, locationDao, raceDao, runDao, sensorMeasurementDao, skierDao)); }
public RaceStartListService(IStartListDao startListDao, ISkierDao skierDao) { _startListDao = startListDao; _skierDao = skierDao; }
public SkierService(ISkierDao skierDao, ICountryDao countryDao, IGenderDao genderDao) { _skierDao = skierDao; _countryDao = countryDao; _genderDao = genderDao; }