Esempio n. 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);
 }
Esempio n. 2
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;
 }
 public CollegeENodebService(IHotSpotENodebRepository repository, IENodebRepository eNodebRepository)
 {
     _repository       = repository;
     _eNodebRepository = eNodebRepository;
 }