public RegionOperationService(IRegionRepository repository,
                               string cityName, string districtName, string regionName)
 {
     _repository   = repository;
     _cityName     = cityName;
     _districtName = districtName;
     _regionName   = regionName;
     _service      = new ByRegionQueryRegionService(_repository.GetAll(),
                                                    _cityName, _districtName, _regionName);
 }
Пример #2
0
 public RegionOperationService(IRegionRepository repository,
     string cityName, string districtName, string regionName)
 {
     _repository = repository;
     _cityName = cityName;
     _districtName = districtName;
     _regionName = regionName;
     _service = new ByRegionQueryRegionService(_repository.GetAll(),
         _cityName, _districtName, _regionName);
 }
Пример #3
0
 public OptimizeRegion ConstructTestRegion(int cityId, int districtId, int regionId)
 {
     service = new ByRegionQueryRegionService(repository.GetAll(),
         "C-" + cityId, "D-" + districtId, "R-" + regionId);
     return service.Query();
 }