Пример #1
0
 public CollegeStat(ICollegeRepository repository, CollegeInfo info, CollegeYearInfo yearInfo,
                    IInfrastructureRepository infrastructureRepository, IHotSpotENodebRepository eNodebRepository,
                    IHotSpotCellRepository cellRepository, IHotSpotBtsRepository btsRepository,
                    IHotSpotCdmaCellRepository cdmaCellRepository)
 {
     Name = info.Name;
     ExpectedSubscribers = yearInfo?.ExpectedSubscribers ?? 0;
     Area = repository.GetRegion(info.Id)?.Area ?? 0;
     Id   = info.Id;
     UpdateStats(infrastructureRepository);
     TotalLteENodebs =
         eNodebRepository.Count(
             x =>
             x.HotspotName == Name && x.HotspotType == HotspotType.College &&
             x.InfrastructureType == InfrastructureType.ENodeb);
     TotalLteCells =
         cellRepository.Count(
             x =>
             x.HotspotName == Name && x.HotspotType == HotspotType.College &&
             x.InfrastructureType == InfrastructureType.Cell);
     TotalCdmaBts =
         btsRepository.Count(
             x =>
             x.HotspotName == Name && x.HotspotType == HotspotType.College &&
             x.InfrastructureType == InfrastructureType.CdmaBts);
     TotalCdmaCells =
         cdmaCellRepository.Count(
             x =>
             x.HotspotName == Name && x.HotspotType == HotspotType.College &&
             x.InfrastructureType == InfrastructureType.CdmaCell);
 }
Пример #2
0
 public CollegeCellViewService(IHotSpotCellRepository repository, ICellRepository cellRepoistory,
                               IENodebRepository eNodebRepository, ILteRruRepository rruRepository)
 {
     _repository       = repository;
     _cellRepository   = cellRepoistory;
     _eNodebRepository = eNodebRepository;
     _rruRepository    = rruRepository;
 }
Пример #3
0
 public BasicImportService(IENodebRepository eNodebRepository, ICellRepository cellRepository,
                           IBtsRepository btsRepository, ICdmaCellRepository cdmaCellRepository,
                           IHotSpotCellRepository hotSpotCellRepository)
 {
     _eNodebRepository      = eNodebRepository;
     _cellRepository        = cellRepository;
     _btsRepository         = btsRepository;
     _cdmaCellRepository    = cdmaCellRepository;
     _hotSpotCellRepository = hotSpotCellRepository;
 }
Пример #4
0
 public CollegeStatService(ICollegeRepository repository, IInfrastructureRepository infrastructureRepository,
                           ICollegeYearRepository yearRepository, IHotSpotENodebRepository eNodebRepository, IHotSpotCellRepository cellRepository,
                           IHotSpotBtsRepository btsRepository, IHotSpotCdmaCellRepository cdmaCellRepository)
 {
     _repository = repository;
     _infrastructureRepository = infrastructureRepository;
     _yearRepository           = yearRepository;
     _eNodebRepository         = eNodebRepository;
     _cellRepository           = cellRepository;
     _btsRepository            = btsRepository;
     _cdmaCellRepository       = cdmaCellRepository;
 }
Пример #5
0
 public BasicImportService(IENodebRepository eNodebRepository, ICellRepository cellRepository,
                           IBtsRepository btsRepository, ICdmaCellRepository cdmaCellRepository,
                           IStationDictionaryRepository stationDictionary, IDistributionRepository distributionRepository,
                           IHotSpotCellRepository hotSpotCellRepository)
 {
     _eNodebRepository       = eNodebRepository;
     _cellRepository         = cellRepository;
     _btsRepository          = btsRepository;
     _cdmaCellRepository     = cdmaCellRepository;
     _stationDictionary      = stationDictionary;
     _distributionRepository = distributionRepository;
     _hotSpotCellRepository  = hotSpotCellRepository;
 }