public AdressProvider()
        {
            EFContext context = new EFContext();


            _citiesRepository     = new CitiesRepository(context);
            _districtsRepository  = new DistrictsRepository(context);
            _streetsRepository    = new StreetsRepository(context);
            _numberHomeRepository = new NumberHomeRepository(context);
            _roomsRepository      = new RoomsRepository(context);
        }
Exemple #2
0
 public BuinessLayer(ICitiesRepository deptRepository,
                     IStreetsRepository streetsRepository)
 {
     _citiesRepository  = deptRepository;
     _streetsRepository = streetsRepository;
 }
Exemple #3
0
 public BuinessLayer()
 {
     _citiesRepository  = new CitiesRepository();
     _streetsRepository = new StreetsRepository();
 }