public VipDemandService(IVipDemandRepository repository, ITownRepository townRepository, IVipProcessRepository processRepository) { _repository = repository; _townRepository = townRepository; _processRepository = processRepository; }
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(); }
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; }
public TownBoundaryService(ITownRepository repository, ITownBoundaryRepository boundaryRepository, IInfrastructureRepository infrastructureRepository) { _repository = repository; _boundaryRepository = boundaryRepository; _infrastructureRepository = infrastructureRepository; }
public DetailsModel(VehicleDbContext context, ITownRepository townRepository, IGroupRepository groupService, IAuthorizationService authorizationService) { _townRepository = townRepository; _groupService = groupService; _authorizationService = authorizationService; _context = context; }
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(); }
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()); }
public BandCellService(ICellRepository repository, IENodebRepository eNodebRepository, ITownRepository townRepository) { _repository = repository; _eNodebRepository = eNodebRepository; _townRepository = townRepository; }
public EmergencyCommunicationService(IEmergencyCommunicationRepository repository, ITownRepository townRepository, IEmergencyProcessRepository processRepository) { _repository = repository; _townRepository = townRepository; _processRepository = processRepository; }
public BtsQueryService(ITownRepository townRepository, IBtsRepository btsRepository, ITownBoundaryRepository boundaryRepository) { _townRepository = townRepository; _btsRepository = btsRepository; _boundaryRepository = boundaryRepository; }
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); } }
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 TownSupportService(ITownRepository townRepository, ITownBoundaryRepository boundaryRepository, IENodebRepository eNodebRepository) { _townRepository = townRepository; _boundaryRepository = boundaryRepository; _eNodebRepository = eNodebRepository; }
public TownOperationService(ITownRepository townRepository, string cityName, string districtName, string townName) { _repository = townRepository; _city = cityName; _district = districtName; _town = townName; }
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()); }
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); }
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(); }
public WinDumpController() { BtsRepository = new EFBtsRepository(); CdmaCellRepository = new EFCdmaCellRepository(); CellRepository = new EFCellRepository(); ENodebRepository = new EFENodebRepository(); TownRepository = new EFTownRepository(); }
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); }
public DoubleFlowQueryService(IDoubleFlowHuaweiRepository huaweiRepository, IDoubleFlowZteRepository zteRepository, IENodebRepository eNodebRepository, ICellRepository huaweiCellRepository, ITownRepository townRepository, ICellRepository cellRepository) : base(huaweiRepository, zteRepository, eNodebRepository, huaweiCellRepository, townRepository) { _cellRepository = cellRepository; }
public WorkItemService(IWorkItemRepository repository, IENodebRepository eNodebRepository, IBtsRepository btsRepository, ITownRepository townRepository) { _repository = repository; _eNodebRepository = eNodebRepository; _btsRepository = btsRepository; _townRepository = townRepository; }
public DingliController(ITownRepository townRepository) { LogRecordRepository.ThroughputCalculationDelay = 1; if (towns == null) { towns = townRepository.GetAllList(); } }
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); }
public RegionController(ITownRepository townRepository, IENodebRepository eNodebRepository, IBtsRepository btsRepository, IRegionRepository regionRepository) { this.townRepository = townRepository; this.eNodebRepository = eNodebRepository; this.regionRepository = regionRepository; this.btsRepository = btsRepository; }
public ENodebQueryService(ITownRepository townRepository, IENodebRepository eNodebRepository, IDistributionRepository distributionRepository, ITownBoundaryRepository boundaryRepository) { _townRepository = townRepository; _eNodebRepository = eNodebRepository; _distributionRepository = distributionRepository; _boundaryRepository = boundaryRepository; }
public ManagingSchoolService() { schoolRepository = new SchoolRepository(); townRepository = new TownRepository(); villageRepository = new VillageRepository(); departmentOfEducationAndTrainingRepository = new DepartmentOfEducationAndTrainingRepository(); examRepository = new ExamRepository(); }
public IndexModel(ITownRepository townRepository, IGroupRepository groupService, UserManager <VehicleUser> userManager, IAuthorizationService authorizationService) { _townRepository = townRepository; _groupService = groupService; _userManager = userManager; _authorizationService = authorizationService; }
public SaveENodebListService(IENodebRepository repository, ParametersDumpInfrastructure infrastructure, ITownRepository townRepository) { _repository = repository; _baseRepository = new ENodebBaseRepository(repository); _townList = townRepository.GetAllList(); _infrastructure = infrastructure; _infrastructure.ENodebsUpdated = 0; }
public WorkItemService(IWorkItemRepository repository, IENodebRepository eNodebRepository, IBtsRepository btsRepository, ITownRepository townRepository, ICellRepository cellRepository) { _repository = repository; _eNodebRepository = eNodebRepository; _btsRepository = btsRepository; _townRepository = townRepository; _cellRepository = cellRepository; }
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; }
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); }
public ByExcelInfoSaveBtsListService(IBtsRepository repository, ParametersDumpInfrastructure infrastructure, ITownRepository townRepository, IENodebRepository lteRepository = null) { _infrastructure = infrastructure; _townRepository = townRepository; _lteRepository = lteRepository; _repository = repository; _baseRepository = new ENodebBaseRepository(repository); }
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; }
public RutraceController(IENodebRepository eNodebRepository, ICellRepository cellRepositroy, ITownRepository townRepository, IMrsCellRepository mrsRepository) { PageSize = 10; _eNodebRepository = eNodebRepository; _cellRepository = cellRepositroy; _townRepository = townRepository; _mrsRepository = mrsRepository; }
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()); } }
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)); }
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; }
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); } }
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; }
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; }
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(); }
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; }
public DistrictListController(ITownRepository townRepository) { this.townRepository = townRepository; }
public TownListController(ITownRepository townRepository) { this.townRepository = townRepository; }
public int SaveENodebs(List<ENodebExcel> eNodebInfoList, ITownRepository townRepository) { if (CurrentProgress > 10) { CurrentProgress = 0; } return CurrentProgress++; }
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); }
public BtsQueryService(ITownRepository townRepository, IBtsRepository btsRepository) { _townRepository = townRepository; _btsRepository = btsRepository; }