コード例 #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;
 }
コード例 #4
0
 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;
 }
コード例 #13
0
        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
ファイル: KpiController.cs プロジェクト: ouyh18/LteTools
        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;
        }
コード例 #15
0
 public BtsRepositorySaveBtsTestHelper(Mock <IBtsRepository> repository,
                                       List <BtsExcel> btsInfos, ITownRepository townRepository)
 {
     this.repository     = repository;
     this.btsInfos       = btsInfos;
     this.townRepository = townRepository;
 }
コード例 #16
0
 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;
 }
コード例 #24
0
 public int SaveENodebs(List <ENodebExcel> eNodebInfoList, ITownRepository townRepository)
 {
     if (CurrentProgress > 10)
     {
         CurrentProgress = 0;
     }
     return(CurrentProgress++);
 }
コード例 #25
0
 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
ファイル: RegionController.cs プロジェクト: ouyh18/LteTools
 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;
 }
コード例 #34
0
 public ManagingSchoolService()
 {
     schoolRepository  = new SchoolRepository();
     townRepository    = new TownRepository();
     villageRepository = new VillageRepository();
     departmentOfEducationAndTrainingRepository = new DepartmentOfEducationAndTrainingRepository();
     examRepository = new ExamRepository();
 }
コード例 #35
0
ファイル: Index.cshtml.cs プロジェクト: sconan32/ImVehicleMIS
 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
ファイル: WorkItemService.cs プロジェクト: ouyh18/LtePlatform
 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
ファイル: RutraceController.cs プロジェクト: ouyh18/LteTools
 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>();
 }
コード例 #45
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.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
ファイル: WorkItemView.cs プロジェクト: ouyh18/LtePlatform
 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;
 }
コード例 #52
0
 public QueryDistinctNamesServiceTestHelper(ITownRepository townRepository)
 {
     repository = townRepository;
 }
コード例 #53
0
ファイル: QueryController.cs プロジェクト: ouyh18ctc/LteTools
 public DistrictListController(ITownRepository townRepository)
 {
     this.townRepository = townRepository;
 }
コード例 #54
0
ファイル: QueryController.cs プロジェクト: ouyh18ctc/LteTools
 public TownListController(ITownRepository townRepository)
 {
     this.townRepository = townRepository;
 }
コード例 #55
0
 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;
 }
コード例 #58
0
 public RegionAndDeleteTownTestHelper(RegionController controller, ITownRepository townRepository)
 {
     this.controller = controller;
     this.townRepository = townRepository;
     service = new QueryDistinctCityNamesService(townRepository.GetAll());
 }
コード例 #59
0
 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
ファイル: BtsQueryService.cs プロジェクト: ouyh18/LtePlatform
 public BtsQueryService(ITownRepository townRepository, IBtsRepository btsRepository)
 {
     _townRepository = townRepository;
     _btsRepository = btsRepository;
 }