Пример #1
0
 public VipDemandService(IVipDemandRepository repository, ITownRepository townRepository,
                         IVipProcessRepository processRepository)
 {
     _repository        = repository;
     _townRepository    = townRepository;
     _processRepository = processRepository;
 }
Пример #2
0
 protected bool DeleteOneENodeb(ITownRepository repository,
     string city, string district, string town, string name)
 {
     DeleteOneENodebService service = new DeleteOneENodebService(eNodebRepository.Object, repository,
         city, district, town, name);
     return service.Delete();
 }
Пример #3
0
 public EvaluationController(ITownRepository townRepository,
                             IENodebRepository eNodebRepository, ICellRepository cellRepositroy)
 {
     this.townRepository   = townRepository;
     this.eNodebRepository = eNodebRepository;
     cellRepository        = cellRepositroy;
 }
 public SecretaryRepository(ICSVStream <Secretary> stream, ISequencer <long> sequencer, IAddressRepository addressRepository,
                            ITownRepository townRepository, IStateRepository stateRepository) : base(stream, sequencer)
 {
     _addressRepository = addressRepository;
     _townRepository    = townRepository;
     _stateRepository   = stateRepository;
 }
Пример #5
0
 public TownBoundaryService(ITownRepository repository, ITownBoundaryRepository boundaryRepository,
                            IInfrastructureRepository infrastructureRepository)
 {
     _repository               = repository;
     _boundaryRepository       = boundaryRepository;
     _infrastructureRepository = infrastructureRepository;
 }
Пример #6
0
 public DetailsModel(VehicleDbContext context, ITownRepository townRepository, IGroupRepository groupService, IAuthorizationService authorizationService)
 {
     _townRepository       = townRepository;
     _groupService         = groupService;
     _authorizationService = authorizationService;
     _context = context;
 }
Пример #7
0
 public KpiImportService(ICdmaRegionStatRepository regionStatRepository,
                         ITopDrop2GCellRepository top2GRepository, ITopConnection3GRepository top3GRepository,
                         ITopConnection2GRepository topConnection2GRepository, IVipDemandRepository vipDemandRepository,
                         IComplainItemRepository complainItemRepository, IBranchDemandRepository branchDemandRepository,
                         IOnlineSustainRepository onlineSustainRepository, IPlanningSiteRepository planningSiteRepository,
                         IComplainProcessRepository processRepository, ITownRepository townRepository,
                         IFileRecordRepository fileRecordRepository, IDtFileInfoRepository dtFileInfoRepository,
                         IRasterTestInfoRepository rasterTestInfoRepository, ILteProblemRepository lteProblemRepository)
 {
     _regionStatRepository      = regionStatRepository;
     _top2GRepository           = top2GRepository;
     _top3GRepository           = top3GRepository;
     _topConnection2GRepository = topConnection2GRepository;
     _vipDemandRepository       = vipDemandRepository;
     _complainItemRepository    = complainItemRepository;
     _branchDemandRepository    = branchDemandRepository;
     _onlineSustainRepository   = onlineSustainRepository;
     _planningSiteRepository    = planningSiteRepository;
     _processRepository         = processRepository;
     _fileRecordRepository      = fileRecordRepository;
     _dtFileInfoRepository      = dtFileInfoRepository;
     _rasterTestInfoRepository  = rasterTestInfoRepository;
     _lteProblemRepository      = lteProblemRepository;
     _towns = townRepository.GetAllList();
 }
Пример #8
0
        public KpiController(IRegionRepository regionRepository,
                             ITownRepository townRepository,
                             ITopCellRepository <CdmaRegionStat> cdmaStatRepository,
                             ITopCellRepository <TopDrop2GCell> topDrop2GRepository,
                             ITopCellRepository <TopDrop2GCellDaily> topDrop2GDailyRepository,
                             ITopCellRepository <TopConnection3GCell> topConnection3GRepository,
                             ITopCellRepository <TownPreciseCoverage4GStat> townPrecise4GRepository,
                             IBtsRepository btsRepository,
                             IENodebRepository eNodebRepository)
        {
            this.regionRepository    = regionRepository;
            this.townRepository      = townRepository;
            this.cdmaStatRepository  = cdmaStatRepository;
            this.topDrop2GRepository = topDrop2GRepository;

            this.topDrop2GDailyRepository  = topDrop2GDailyRepository;
            this.topConnection3GRepository = topConnection3GRepository;

            this.townPrecise4GRepository = townPrecise4GRepository;
            this.btsRepository           = btsRepository;
            this.eNodebRepository        = eNodebRepository;

            this.Initialize(topDrop2GRepository, topConnection3GRepository);
            regionNamesService   = new QueryRegionCityNamesService(this.regionRepository.GetAll());
            districtNamesService = new QueryDistinctDistrictNamesService(this.townRepository.GetAll());
        }
Пример #9
0
 public BandCellService(ICellRepository repository, IENodebRepository eNodebRepository,
                        ITownRepository townRepository)
 {
     _repository       = repository;
     _eNodebRepository = eNodebRepository;
     _townRepository   = townRepository;
 }
Пример #10
0
 public EmergencyCommunicationService(IEmergencyCommunicationRepository repository, ITownRepository townRepository,
                                      IEmergencyProcessRepository processRepository)
 {
     _repository        = repository;
     _townRepository    = townRepository;
     _processRepository = processRepository;
 }
Пример #11
0
 public BtsQueryService(ITownRepository townRepository, IBtsRepository btsRepository,
                        ITownBoundaryRepository boundaryRepository)
 {
     _townRepository     = townRepository;
     _btsRepository      = btsRepository;
     _boundaryRepository = boundaryRepository;
 }
Пример #12
0
 public CqiRegionStatService(ITownQciRepository statRepository, ITownRepository townRepository,
                             ITownCqiRepository cqiRepository)
 {
     _statRepository = statRepository;
     _townRepository = townRepository;
     _cqiRepository  = cqiRepository;
 }
        public void AssertTest(ITownRepository repository, ITown town)
        {
            viewModel.InitializeTownList(repository, town);
            Assert.IsNotNull(viewModel.CityList);
            Assert.IsNotNull(viewModel.DistrictList);
            Assert.IsNotNull(viewModel.TownList);

            if (town == null)
            {
                Assert.IsNull(viewModel.CityName);
                Assert.IsNull(viewModel.DistrictName);
                Assert.IsNull(viewModel.TownName);
                Assert.AreEqual(viewModel.CityList.Count, service.QueryCount());
                Assert.AreEqual(viewModel.DistrictList.Count, 0);
                Assert.AreEqual(viewModel.TownList.Count, 0);
            }
            else
            {
                Assert.IsNotNull(viewModel.CityList);
                Assert.IsNotNull(viewModel.DistrictList);
                Assert.IsNotNull(viewModel.TownList);
                Assert.AreEqual(viewModel.CityName, town.CityName);
                Assert.AreEqual(viewModel.DistrictName, town.DistrictName);
                Assert.AreEqual(viewModel.TownName, town.TownName);
                viewModel.AssertRegionList(towns, town);
            }
        }
Пример #14
0
        public KpiController(IRegionRepository regionRepository,
            ITownRepository townRepository,
            ITopCellRepository<CdmaRegionStat> cdmaStatRepository,
            ITopCellRepository<TopDrop2GCell> topDrop2GRepository,
            ITopCellRepository<TopDrop2GCellDaily> topDrop2GDailyRepository,
            ITopCellRepository<TopConnection3GCell> topConnection3GRepository,
            ITopCellRepository<TownPreciseCoverage4GStat> townPrecise4GRepository,
            IBtsRepository btsRepository,
            IENodebRepository eNodebRepository,
            IAlarmRepository alarmRepository)
        {
            this.regionRepository = regionRepository;
            this.townRepository = townRepository;
            this.cdmaStatRepository = cdmaStatRepository;
            this.topDrop2GRepository = topDrop2GRepository;

            this.topDrop2GDailyRepository = topDrop2GDailyRepository;
            this.topConnection3GRepository = topConnection3GRepository;

            this.townPrecise4GRepository = townPrecise4GRepository;
            this.btsRepository = btsRepository;
            this.eNodebRepository = eNodebRepository;

            this.Initialize(topDrop2GRepository, topConnection3GRepository);
            regionNamesService = new QueryRegionCityNamesService(this.regionRepository.GetAll());
            districtNamesService = new QueryDistinctDistrictNamesService(this.townRepository.GetAll());

            _alarmRepository = alarmRepository;
        }
 public BtsRepositorySaveBtsTestHelper(Mock <IBtsRepository> repository,
                                       List <BtsExcel> btsInfos, ITownRepository townRepository)
 {
     this.repository     = repository;
     this.btsInfos       = btsInfos;
     this.townRepository = townRepository;
 }
 public EvaluationController(ITownRepository townRepository,
     IENodebRepository eNodebRepository, ICellRepository cellRepositroy)
 {
     this.townRepository = townRepository;
     this.eNodebRepository = eNodebRepository;
     cellRepository = cellRepositroy;
 }
Пример #17
0
 public TownSupportService(ITownRepository townRepository, ITownBoundaryRepository boundaryRepository,
                           IENodebRepository eNodebRepository)
 {
     _townRepository     = townRepository;
     _boundaryRepository = boundaryRepository;
     _eNodebRepository   = eNodebRepository;
 }
Пример #18
0
 public TownOperationService(ITownRepository townRepository,
                             string cityName, string districtName, string townName)
 {
     _repository = townRepository;
     _city       = cityName;
     _district   = districtName;
     _town       = townName;
 }
Пример #19
0
 public static List <TTownStat> QueryTownStat <TTownStat>(this IEnumerable <TTownStat> query,
                                                          ITownRepository townRepository, string city)
     where TTownStat : ITownId
 {
     return((from q in query
             join t in townRepository.GetAllList().Where(x => x.CityName == city) on q.TownId equals t.Id
             select q).ToList());
 }
Пример #20
0
        public static CdmaBts ConstructBts(this BtsExcel info, ITownRepository repository)
        {
            var town = repository.QueryTown(info.DistrictName, info.TownName);
            var bts  = Mapper.Map <BtsExcel, CdmaBts>(info);

            bts.TownId = town?.Id ?? -1;
            return(bts);
        }
Пример #21
0
        public void ImportTownENodebStats(ITownRepository townRepository, IENodebRepository eNodebRepository,
                                          IRegionRepository regionRepository)
        {
            IEnumerable <ENodeb> eNodebs = eNodebRepository.GetAllList();

            TownENodebStats = townRepository.GetAllList().Select(
                x => new TownENodebStat(x, eNodebs, regionRepository)).ToList();
        }
Пример #22
0
 public WinDumpController()
 {
     BtsRepository      = new EFBtsRepository();
     CdmaCellRepository = new EFCdmaCellRepository();
     CellRepository     = new EFCellRepository();
     ENodebRepository   = new EFENodebRepository();
     TownRepository     = new EFTownRepository();
 }
Пример #23
0
 public DetailsModel(ITownRepository townRepository, IGroupRepository groupService,
                     IAuthorizationService authorizationService, IUserFileService userFileService)
 {
     _townRepository       = townRepository;
     _groupService         = groupService;
     _authorizationService = authorizationService;
     _userFileService      = userFileService;
 }
 public int SaveENodebs(List <ENodebExcel> eNodebInfoList, ITownRepository townRepository)
 {
     if (CurrentProgress > 10)
     {
         CurrentProgress = 0;
     }
     return(CurrentProgress++);
 }
 public void AssertTest(ITownRepository repository, string cityName, string districtName, string townName)
 {
     viewModel.CityName     = cityName;
     viewModel.DistrictName = districtName;
     viewModel.TownName     = townName;
     viewModel.InitializeTownList(repository, viewModel);
     viewModel.AssertRegionList(towns, viewModel);
 }
Пример #26
0
 public DoubleFlowQueryService(IDoubleFlowHuaweiRepository huaweiRepository,
                               IDoubleFlowZteRepository zteRepository, IENodebRepository eNodebRepository,
                               ICellRepository huaweiCellRepository, ITownRepository townRepository, ICellRepository cellRepository) :
     base(huaweiRepository,
          zteRepository, eNodebRepository, huaweiCellRepository, townRepository)
 {
     _cellRepository = cellRepository;
 }
Пример #27
0
 public WorkItemService(IWorkItemRepository repository, IENodebRepository eNodebRepository,
                        IBtsRepository btsRepository, ITownRepository townRepository)
 {
     _repository       = repository;
     _eNodebRepository = eNodebRepository;
     _btsRepository    = btsRepository;
     _townRepository   = townRepository;
 }
Пример #28
0
 public DingliController(ITownRepository townRepository)
 {
     LogRecordRepository.ThroughputCalculationDelay = 1;
     if (towns == null)
     {
         towns = townRepository.GetAllList();
     }
 }
Пример #29
0
        public static ENodeb ConstructENodeb(ENodebExcel info, ITownRepository repository)
        {
            var town   = repository.QueryTown(info.CityName, info.DistrictName, info.TownName);
            var eNodeb = Mapper.Map <ENodebExcel, ENodeb>(info);

            eNodeb.TownId = town?.Id ?? -1;
            return(eNodeb);
        }
Пример #30
0
 public RegionController(ITownRepository townRepository, IENodebRepository eNodebRepository,
                         IBtsRepository btsRepository, IRegionRepository regionRepository)
 {
     this.townRepository   = townRepository;
     this.eNodebRepository = eNodebRepository;
     this.regionRepository = regionRepository;
     this.btsRepository    = btsRepository;
 }
Пример #31
0
 public ENodebQueryService(ITownRepository townRepository, IENodebRepository eNodebRepository,
                           IDistributionRepository distributionRepository, ITownBoundaryRepository boundaryRepository)
 {
     _townRepository         = townRepository;
     _eNodebRepository       = eNodebRepository;
     _distributionRepository = distributionRepository;
     _boundaryRepository     = boundaryRepository;
 }
Пример #32
0
 public RegionController(ITownRepository townRepository, IENodebRepository eNodebRepository,
     IBtsRepository btsRepository, IRegionRepository regionRepository)
 {
     this.townRepository = townRepository;
     this.eNodebRepository = eNodebRepository;
     this.regionRepository = regionRepository;
     this.btsRepository = btsRepository;
 }
Пример #33
0
 public TownOperationService(ITownRepository townRepository,
     string cityName, string districtName, string townName)
 {
     _repository = townRepository;
     _city = cityName;
     _district = districtName;
     _town = townName;
 }
 public ManagingSchoolService()
 {
     schoolRepository  = new SchoolRepository();
     townRepository    = new TownRepository();
     villageRepository = new VillageRepository();
     departmentOfEducationAndTrainingRepository = new DepartmentOfEducationAndTrainingRepository();
     examRepository = new ExamRepository();
 }
Пример #35
0
 public IndexModel(ITownRepository townRepository, IGroupRepository groupService, UserManager <VehicleUser> userManager,
                   IAuthorizationService authorizationService)
 {
     _townRepository       = townRepository;
     _groupService         = groupService;
     _userManager          = userManager;
     _authorizationService = authorizationService;
 }
Пример #36
0
 public SaveENodebListService(IENodebRepository repository,
     ParametersDumpInfrastructure infrastructure, ITownRepository townRepository)
 {
     _repository = repository;
     _baseRepository = new ENodebBaseRepository(repository);
     _townList = townRepository.GetAllList();
     _infrastructure = infrastructure;
     _infrastructure.ENodebsUpdated = 0;
 }
Пример #37
0
 public WorkItemService(IWorkItemRepository repository, IENodebRepository eNodebRepository,
     IBtsRepository btsRepository, ITownRepository townRepository, ICellRepository cellRepository)
 {
     _repository = repository;
     _eNodebRepository = eNodebRepository;
     _btsRepository = btsRepository;
     _townRepository = townRepository;
     _cellRepository = cellRepository;
 }
Пример #38
0
 public static bool DeleteOneBts(this IBtsRepository repository, ITownRepository townRepository,
     string districtName, string townName, string btsName)
 {
     int townId = townRepository.GetAllList().QueryId(districtName, townName);
     CdmaBts bts = repository.QueryBts(townId, btsName);
     if (bts == null) return false;
     repository.Delete(bts);
     return true;
 }
Пример #39
0
 public static IEnumerable<ENodeb> QueryWithNames(this IRepository<ENodeb> repository,
     ITownRepository townRepository, string city, string district, string town, string eNodebName,
     string address)
 {
     IEnumerable<Town> _townList = townRepository.GetAll().QueryTowns(city, district, town).ToList();
     return (!_townList.Any())
         ? null
         : repository.Query(eNodebName, address, _townList);
 }
Пример #40
0
 public ByExcelInfoSaveBtsListService(IBtsRepository repository,
     ParametersDumpInfrastructure infrastructure, ITownRepository townRepository,
     IENodebRepository lteRepository = null)
 {
     _infrastructure = infrastructure;
     _townRepository = townRepository;
     _lteRepository = lteRepository;
     _repository = repository;
     _baseRepository = new ENodebBaseRepository(repository);
 }
Пример #41
0
 public TownQueryService(ITownRepository repository, IRegionRepository regionRepository,
     IENodebRepository eNodebRepositroy, IBtsRepository btsRepository,
     ICellRepository cellRepository, ICdmaCellRepository cdmaCellRepository)
 {
     _repository = repository;
     _regionRepository = regionRepository;
     _eNodebRepository = eNodebRepositroy;
     _btsRepository = btsRepository;
     _cellRepository = cellRepository;
     _cdmaCellRepository = cdmaCellRepository;
 }
Пример #42
0
 public RutraceController(IENodebRepository eNodebRepository,
     ICellRepository cellRepositroy,
     ITownRepository townRepository,
     IMrsCellRepository mrsRepository)
 {
     PageSize = 10;
     _eNodebRepository = eNodebRepository;
     _cellRepository = cellRepositroy;
     _townRepository = townRepository;
     _mrsRepository = mrsRepository;
 }
Пример #43
0
 public static void InitializeTownList(this IENodebQueryViewModel viewModel,
     ITownRepository townRepository, ITown town = null)
 {
     if (town != null)
     {
         viewModel.Initialize(townRepository.GetAll(), town);
     }
     else
     {
         viewModel.Initialize(townRepository.GetAll());
     }
 }
Пример #44
0
 public PreciseImportService(IPreciseCoverage4GRepository repository,
     ITownPreciseCoverage4GStatRepository regionRepository,
     IENodebRepository eNodebRepository, ITownRepository townRepository)
 {
     _repository = repository;
     _regionRepository = regionRepository;
     _eNodebRepository = eNodebRepository;
     _townRepository = townRepository;
     if (PreciseCoverage4Gs == null)
         PreciseCoverage4Gs = new Stack<PreciseCoverage4G>();
     if (TownPreciseViews == null)
         TownPreciseViews = new List<TownPreciseView>();
 }
 public static IEnumerable<ENodeb> QueryWithNames(this IRepository<ENodeb> repository,
     ITownRepository townRepository, string city, string district, string town, string eNodebName,
     string address)
 {
     IEnumerable<Town> _townList = townRepository.GetAll().QueryTowns(city, district, town).ToList();
     return (!_townList.Any())
         ? null
         : repository.GetAllList().Where(x =>
             _townList.FirstOrDefault(t => t.Id == x.TownId) != null
             && (string.IsNullOrEmpty(eNodebName) || x.Name.IndexOf(eNodebName.Trim(),
                 StringComparison.Ordinal) >= 0)
             && (string.IsNullOrEmpty(address) || x.Address.IndexOf(address.Trim(),
                 StringComparison.Ordinal) >= 0));
 }
Пример #46
0
 public CollegeController(ICollegeRepository repository, ITownRepository townRepository,
     IInfrastructureRepository infrastructureRepository, IIndoorDistributioinRepository indoorDistributioinRepository,
     IENodebRepository eNodebRepository, ICellRepository cellRepository,
     IBtsRepository btsRepository, ICdmaCellRepository cdmaCellRepository)
 {
     _repository = repository;
     _townRepository = townRepository;
     _infrastructureRepository = infrastructureRepository;
     _indoorDistributioinRepository = indoorDistributioinRepository;
     _eNodebRepository = eNodebRepository;
     _cellRepository = cellRepository;
     _btsRepository = btsRepository;
     _cdmaCellRepository = cdmaCellRepository;
 }
Пример #47
0
 public DeleteOneENodebService(IENodebRepository repository, ITownRepository townRepository,
     string cityName, string districtName, string townName, string eNodebName)
     : this(repository)
 {
     if (townRepository == null)
     {
         _eNodeb = null;
     }
     else
     {
         int townId = townRepository.GetAll().QueryId(cityName, districtName, townName);
         _eNodeb = repository.GetAll().FirstOrDefault(x => x.TownId == townId && x.Name == eNodebName);
     }
 }
Пример #48
0
 public void UpdateTown(IENodebRepository eNodebRepository, IBtsRepository btsRepository,
     ITownRepository townRepository)
 {
     if (ENodebId > 10000)
     {
         UpdateTown(eNodebRepository, townRepository);
     }
     var bts = btsRepository.GetByBtsId(ENodebId);
     if (bts == null) return;
     ENodebName = bts.Name;
     var town = bts.TownId == -1 ? null : townRepository.Get(bts.TownId);
     if (town == null) return;
     City = town.CityName;
     District = town.DistrictName;
     Town = town.TownName;
 }
Пример #49
0
 public ParametersController(
     ITownRepository townRepository,
     IENodebRepository eNodebRepository,
     ICellRepository cellRepository,
     IBtsRepository btsRepository,
     ICdmaCellRepository cdmaCellRepository,
     IRegionRepository regionRepository,
     IENodebPhotoRepository photoRepository)
 {
     _townRepository = townRepository;
     _eNodebRepository = eNodebRepository;
     _cellRepository = cellRepository;
     _btsRepository = btsRepository;
     _cdmaCellRepository = cdmaCellRepository;
     _regionRepository = regionRepository;
     _photoRepository = photoRepository;
 }
Пример #50
0
 public KpiImportService(ICdmaRegionStatRepository regionStatRepository,
     ITopDrop2GCellRepository top2GRepository, ITopConnection3GRepository top3GRepository,
     ITopConnection2GRepository topConnection2GRepository,
     IDownSwitchFlowRepository downSwitchRepository, IVipDemandRepository vipDemandRepository,
     IComplainItemRepository complainItemRepository, IBranchDemandRepository branchDemandRepository,
     IOnlineSustainRepository onlineSustainRepository, IPlanningSiteRepository planningSiteRepository, 
     ITownRepository townRepository)
 {
     _regionStatRepository = regionStatRepository;
     _top2GRepository = top2GRepository;
     _top3GRepository = top3GRepository;
     _topConnection2GRepository = topConnection2GRepository;
     _downSwitchRepository = downSwitchRepository;
     _vipDemandRepository = vipDemandRepository;
     _complainItemRepository = complainItemRepository;
     _branchDemandRepository = branchDemandRepository;
     _onlineSustainRepository = onlineSustainRepository;
     _planningSiteRepository = planningSiteRepository;
     _towns = townRepository.GetAllList();
 }
Пример #51
0
 public BtsRepositorySaveBtsTestHelper(Mock<IBtsRepository> repository,
     List<BtsExcel> btsInfos, ITownRepository townRepository)
 {
     this.repository = repository;
     this.btsInfos = btsInfos;
     this.townRepository = townRepository;
 }
 public QueryDistinctNamesServiceTestHelper(ITownRepository townRepository)
 {
     repository = townRepository;
 }
Пример #53
0
 public DistrictListController(ITownRepository townRepository)
 {
     this.townRepository = townRepository;
 }
Пример #54
0
 public TownListController(ITownRepository townRepository)
 {
     this.townRepository = townRepository;
 }
 public void AssertTest(ITownRepository repository, string cityName, string districtName, string townName)
 {
     viewModel.CityName = cityName;
     viewModel.DistrictName = districtName;
     viewModel.TownName = townName;
     viewModel.InitializeTownList(repository, viewModel);
     viewModel.AssertRegionList(towns, viewModel);
 }
Пример #56
0
 public int SaveENodebs(List<ENodebExcel> eNodebInfoList, ITownRepository townRepository)
 {
     if (CurrentProgress > 10) { CurrentProgress = 0; }
     return CurrentProgress++;
 }
Пример #57
0
 public bool DeleteENodeb(ITownRepository townRepository,
     string cityName, string districtName, string townName, string eNodebName)
 {
     return true;
 }
 public RegionAndDeleteTownTestHelper(RegionController controller, ITownRepository townRepository)
 {
     this.controller = controller;
     this.townRepository = townRepository;
     service = new QueryDistinctCityNamesService(townRepository.GetAll());
 }
 public void AssertTest(ITownRepository repository)
 {
     viewModel.InitializeTownList(repository);
     Assert.IsNotNull(viewModel.CityList);
     Assert.IsNotNull(viewModel.DistrictList);
     Assert.IsNotNull(viewModel.TownList);
     Assert.IsNull(viewModel.CityName);
     Assert.IsNull(viewModel.DistrictName);
     Assert.IsNull(viewModel.TownName);
     QueryNamesService service = new QueryDistinctCityNamesService(towns);
     Assert.AreEqual(viewModel.CityList.Count, service.QueryCount());
     Assert.AreEqual(viewModel.DistrictList.Count, 0);
     Assert.AreEqual(viewModel.TownList.Count, 0);
     Assert.IsNull(viewModel.ENodebs);
 }
Пример #60
0
 public BtsQueryService(ITownRepository townRepository, IBtsRepository btsRepository)
 {
     _townRepository = townRepository;
     _btsRepository = btsRepository;
 }