public CollegeCdmaCellViewService(IHotSpotCdmaCellRepository repository, ICdmaCellRepository cellRepository, IBtsRepository btsRepository) { _repository = repository; _cellRepository = cellRepository; _btsRepository = btsRepository; }
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); }
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; }