Example #1
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());
        }
Example #2
0
 public WorldController(INationRepository nationRepository, IRegionRepository regionRepository, ISessionRepository sessionRepository, IWorldRepository worldRepository)
 {
     NationRepository  = nationRepository;
     RegionRepository  = regionRepository;
     SessionRepository = sessionRepository;
     WorldRepository   = worldRepository;
 }
 public AreaImporterService(CokeDataContext context, IAreaRepository areaRepository, IRegionRepository regionRepository)
 {
     _areaRepository = areaRepository;
     _regionRepository = regionRepository;
     _context = context;
    
 }
Example #4
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,
            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 RegistrationUserService(IContextRegistration contextRegistration, IVoteRepository voteRepository, IRegionRepository regionRepository, IUserRepository userRepository)
 {
     _voteRepos           = voteRepository;
     _regionRepos         = regionRepository;
     _userRepos           = userRepository;
     _contextRegistration = contextRegistration;
 }
Example #6
0
 public RegionService(IRegionRepository regionRepository, IRegionResolver regionResolver, IAggregateTileResolver tileResolver, ITileService tileService)
 {
     _regionRepository = regionRepository;
     _regionResolver = regionResolver;
     _tileResolver = tileResolver;
     _tileService = tileService;
 }
Example #7
0
 public DeviceOffLineDomainEventHandler(ILoggerFactory logger, IDeviceIntegrationEventService deviceIntegrationEventService, IRegionRepository regionRepository, IUserRepository userRepository)
 {
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _deviceIntegrationEventService = deviceIntegrationEventService ?? throw new ArgumentNullException(nameof(deviceIntegrationEventService));
     _regionRepository = regionRepository ?? throw new ArgumentNullException(nameof(regionRepository));
     _userRepository   = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
 }
Example #8
0
        /// <summary>
        /// Constructor
        /// </summary>
        public OpportunityService(
            ILogger <OpportunityService> logger,
            IOptionsMonitor <AppOptions> appOptions,
            IUserProfileRepository userProfileRepository,
            IIndustryRepository industryRepository,
            IRegionRepository regionRepository,
            IOpportunityRepository opportunityRepository,
            OpportunityHelpers opportunityHelpers,
            IOpportunityFactory opportunityFactory,
            IAuthorizationService authorizationService,
            IPermissionRepository permissionRepository,
            IUserContext userContext,
            UserProfileHelpers userProfileHelpers) : base(logger, appOptions)

        {
            Guard.Against.Null(opportunityRepository, nameof(opportunityRepository));
            Guard.Against.Null(opportunityHelpers, nameof(opportunityHelpers));
            Guard.Against.Null(userProfileHelpers, nameof(userProfileHelpers));
            Guard.Against.Null(authorizationService, nameof(authorizationService));
            Guard.Against.Null(permissionRepository, nameof(permissionRepository));
            Guard.Against.Null(userContext, nameof(userContext));

            _userProfileRepository = userProfileRepository;
            _industryRepository    = industryRepository;
            _regionRepository      = regionRepository;
            _opportunityRepository = opportunityRepository;
            _opportunityHelpers    = opportunityHelpers;
            _userProfileHelpers    = userProfileHelpers;
            _opportunityFactory    = opportunityFactory;
            _authorizationService  = authorizationService;
            _permissionRepository  = permissionRepository;
            _userContext           = userContext;
        }
Example #9
0
 public CompanyService(ICitizenService citizenService, IConfigurationRepository configurationRepository,
                       IEquipmentRepository equipmentRepository, IProductService productService, IProductRepository productRepository,
                       ICitizenRepository citizenRepository, ITransactionsService transactionService,
                       IJobOfferService jobOfferService, ICompanyEmployeeRepository companyEmployeeRepository,
                       ICompanyRepository companyRepository, IEntityService entityService, ICompanyManagerRepository companyManagerRepository,
                       IRegionRepository regionRepository, IWarningService warningService, IJobOfferRepository jobOfferRepository,
                       IEquipmentService equipmentService, IContractService contractService, IWalletService walletService, IPopupService popupService,
                       IRegionService regionService, ICompanyFinanceSummaryService companyFinanceSummaryService)
 {
     this.companyRepository         = companyRepository;
     this.entityService             = entityService;
     this.companyManagerRepository  = companyManagerRepository;
     this.jobOfferService           = jobOfferService;
     this.companyEmployeeRepository = companyEmployeeRepository;
     this.citizenRepository         = citizenRepository;
     this.transactionService        = transactionService;
     this.equipmentRepository       = equipmentRepository;
     this.productService            = productService;
     this.productRepository         = productRepository;
     this.citizenService            = Attach(citizenService);
     this.configurationRepository   = configurationRepository;
     this.regionRepository          = regionRepository;
     this.warningService            = Attach(warningService);
     this.jobOfferRepository        = jobOfferRepository;
     this.equipmentService          = Attach(equipmentService);
     this.contractService           = Attach(contractService);
     this.walletService             = Attach(walletService);
     this.popupService  = Attach(popupService);
     this.regionService = Attach(regionService);
     this.companyFinanceSummaryService = Attach(companyFinanceSummaryService);
 }
Example #10
0
 public static int ImportRegionStats(this IKpiImportController controller, HttpPostedFileBase httpPostedFileBase,
     string[] sheetNames, IRegionRepository regionRepository, ITopCellRepository<CdmaRegionStat> cdmaStatRepository)
 {
     List<CdmaRegionStat> statList =
         httpPostedFileBase.ImportInfo(
             x =>
             {
                 List<CdmaRegionStat> stats = new List<CdmaRegionStat>();
                 using (ExcelImporter excelImporter = new ExcelImporter(x, sheetNames))
                 {
                     foreach (string sheetName in sheetNames)
                     {
                         using (DataTable statTable = excelImporter[sheetName])
                         {
                             ImportExcelListService<CdmaRegionStat> service =
                                 new ImportExcelListService<CdmaRegionStat>(stats, statTable);
                             service.Import();
                         }
                     }
                 }
                 return stats;
             }, "佛山");
     if (statList.Count > 0)
     {
         OptimizeRegion firstOrDefault = regionRepository.GetAllList().FirstOrDefault(
             x => x.Region == statList[0].Region);
         if (firstOrDefault != null)
         {
             controller.SaveTimeKpiStatsService.CurrentCity = firstOrDefault.City;
             controller.Save3GStatsService.CurrentCity = firstOrDefault.City;
         }
     }
     return cdmaStatRepository.SaveStats(statList);
 }
 public TerritoryController(WorkersInMotionDB context)
 {
     this._IRegionRepository = new RegionRepository(context);
     this._IMarketRepository = new MarketRepository(context);
     this._ITerritoryRepository = new TerritoryRepository(context);
     this._IGlobalUserRepository = new GlobalUserRepository(context);
 }
Example #12
0
 public RegionsController(IUnitOfWork unitOfWork, IRegionRepository regionRepository, IRedisConnectionFactory cache, IMediator mediator)
 {
     _unitOfWork       = unitOfWork;
     _regionRepository = regionRepository;
     _cache            = cache;
     _mediator         = mediator;
 }
Example #13
0
 public RegionService(ICountryService countryService, ICodeGeneratorService codeGenService, IRegionRepository regionRepository, IBaseEntityRepository <Region> baseEntityRepository) : base(baseEntityRepository)
 {
     _baseEntityRepository = baseEntityRepository;
     _regionRepository     = regionRepository;
     _codeGenService       = codeGenService;
     _countryService       = countryService;
 }
Example #14
0
 public RegionImportService(IDTOToEntityMapping mappingService, IRegionRepository repository, CokeDataContext ctx)
 {
     _mappingService = mappingService;
     _repository = repository;
     _ctx = ctx;
     validationResultInfos=new List<ImportValidationResultInfo>();
 }
        public void Simple_Status_County()
        {
            IRegionRepository regionRepository = Substitute.For <IRegionRepository>();
            var f      = new Fixture();
            var region = f.Create <Region>();
            var county = CreateCounty(region.GetMasterDataRef());

            regionRepository.GetById(Arg.Any <Guid>()).Returns(region);
            var countyRepository = new CountyRepository(ContextConnection(), regionRepository);

            countyRepository.Save(county);
            countyRepository.SetInactive(county);
            var inactive = countyRepository.GetById(county.Id);

            Assert.That(inactive.Status == EntityStatus.Inactive);

            countyRepository.SetActive(county);
            var active = countyRepository.GetById(county.Id);

            Assert.That(active.Status == EntityStatus.Active);

            countyRepository.SetAsDeleted(county);
            var deleted = countyRepository.GetById(county.Id);

            Assert.That(deleted.Status == EntityStatus.Deleted);
        }
 public DeviceOnlineDomainEventHandler(ISkynetTerminalClient terminalClient, IDeviceIntegrationEventService deviceIntegrationEventService, IRegionRepository regionRepository, IUserRepository userRepository)
 {
     _terminalClient = terminalClient ?? throw new ArgumentNullException(nameof(terminalClient));
     _deviceIntegrationEventService = deviceIntegrationEventService ?? throw new ArgumentNullException(nameof(deviceIntegrationEventService));
     _regionRepository = regionRepository ?? throw new ArgumentNullException(nameof(regionRepository));
     _userRepository   = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
 }
Example #17
0
        /// <summary>
        /// Sends the updates for a <see cref="Region"/>
        /// </summary>
        /// <param name="player">The player.</param>
        /// <param name="position">The position.</param>
        /// <param name="differences">The differences.</param>
        /// <param name="full">The HashSet of <see cref="RegionCoordinates"/> of regions that require a full update.</param>
        /// <param name="encodes">The HashSet of <see cref="RegionCoordinates"/> of regions that changed.</param>
        /// <param name="updates">The HashSet of <see cref="RegionCoordinates"/> of regions that require a update.</param>
        private async Task SendUpdates(Player player, Position position, HashSet <RegionCoordinates> differences, HashSet <RegionCoordinates> full, Dictionary <RegionCoordinates, HashSet <RegionUpdateMessage> > encodes, Dictionary <RegionCoordinates, HashSet <RegionUpdateMessage> > updates)
        {
            IRegionRepository repository = _regionRepository;
            int height = position.Height;

            foreach (RegionCoordinates coordinates in differences)
            {
                var updatesMsgs = repository.Get(coordinates).GetUpdates(height);
                var messages    = updates.TryAdd(coordinates, updatesMsgs);

                if (messages)
                {
                    await player.SendAsync(new GroupedRegionUpdateMessage(position, coordinates, updatesMsgs));
                }
            }

            foreach (RegionCoordinates coordinates in full)
            {
                var addMessages = repository.Get(coordinates).Encode(height);
                var added       = encodes.TryAdd(coordinates, addMessages);

                if (added)
                {
                    await _protoMessageSender.SendAsync(player, new ClearRegionMessage { LocalX = position.LocalX, LocalY = position.LocalX });

                    await player.SendAsync(new GroupedRegionUpdateMessage(position, coordinates, addMessages));
                }
            }
        }
Example #18
0
 public DataManager(
     ICityRepository cityRepository,
     ICountryRepository countryRepository,
     IFriendRequestRepository friendRequestRepository,
     IGroupNewseRepository groupNewseRepository,
     IGroupProfileRepository groupProfileRepository,
     IGroupRepository groupRepository,
     IGroupRequestRepository groupRequestRepository,
     IGroupTypeRepository groupTypeRepository,
     IMemberRoleRepository memberRoleRepository,
     IMessageRepository messageRepository,
     IRegionRepository regionRepository,
     IApplicationUserRepository userRepository,
     IUserProfileRepository userProfileRepository,
     IWallOfUserRepository wallOfUserRepository
     )
 {
     this.cityRepository = cityRepository;
     this.countryRepository = countryRepository;
     this.friendRequestRepository = friendRequestRepository;
     this.groupNewseRepository = groupNewseRepository;
     this.groupProfileRepository = groupProfileRepository;
     this.groupRepository = groupRepository;
     this.groupRequestRepository = groupRequestRepository;
     this.groupTypeRepository = groupTypeRepository;
     this.memberRoleRepository = memberRoleRepository;
     this.messagesRepository = messageRepository;
     this.regionRepository = regionRepository;
     this.userRepository = userRepository;
     this.userProfileRepository = userProfileRepository;
     this.wallOfUserRepository = wallOfUserRepository;
 }
Example #19
0
 static Countries()
 {
     countryService   = Ninject.Current.Get <ICountryService>();
     entityRepository = Ninject.Current.Get <IEntityRepository>();
     regionService    = Ninject.Current.Get <IRegionService>();
     regionRepository = Ninject.Current.Get <IRegionRepository>();
 }
Example #20
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="empRepository"></param>
 /// <param name="empStatusRepository"></param>
 /// <param name="companyRepository"></param>
 /// <param name="jobTypeRepository"></param>
 /// <param name="designationRepository"></param>
 /// <param name="desigGradeRepository"></param>
 /// <param name="departmentRepository"></param>
 /// <param name="workplaceRepository"></param>
 /// <param name="countryRepository"></param>
 /// <param name="regionRepository"></param>
 /// <param name="subRegionRepository"></param>
 /// <param name="cityRepository"></param>
 /// <param name="areaRepository"></param>
 /// <param name="phoneTypeRepository"></param>
 /// <param name="licenseTypeRepository"></param>
 /// <param name="operationRepository"></param>
 /// <param name="operationsWorkPlaceRepository"></param>
 public EmployeeService(IEmployeeRepository empRepository, IEmpStatusRepository empStatusRepository, ICompanyRepository companyRepository,
                        IJobTypeRepository jobTypeRepository, IDesignationRepository designationRepository, IDesignGradeRepository desigGradeRepository,
                        IDepartmentRepository departmentRepository, IWorkplaceRepository workplaceRepository, ICountryRepository countryRepository,
                        IRegionRepository regionRepository, ISubRegionRepository subRegionRepository, ICityRepository cityRepository,
                        IAreaRepository areaRepository, IPhoneTypeRepository phoneTypeRepository, ILicenseTypeRepository licenseTypeRepository,
                        IOperationRepository operationRepository, IOperationsWorkPlaceRepository operationsWorkPlaceRepository, IAddressTypeRepository addressTypeRepository,
                        IAddressRepository addressRepository, IPhoneRepository phoneRepository, IEmpJobProgRepository empJobProgRepository,
                        IEmpAuthOperationsWorkplaceRepository empAuthOperationsWorkplaceRepository)
 {
     employeeRepository        = empRepository;
     this.empStatusRepository  = empStatusRepository;
     this.addressRepository    = addressRepository;
     this.phoneRepository      = phoneRepository;
     this.empJobProgRepository = empJobProgRepository;
     this.empAuthOperationsWorkplaceRepository = empAuthOperationsWorkplaceRepository;
     this.companyRepository             = companyRepository;
     this.jobTypeRepository             = jobTypeRepository;
     this.designationRepository         = designationRepository;
     this.desigGradeRepository          = desigGradeRepository;
     this.departmentRepository          = departmentRepository;
     this.workplaceRepository           = workplaceRepository;
     this.regionRepository              = regionRepository;
     this.countryRepository             = countryRepository;
     this.subRegionRepository           = subRegionRepository;
     this.cityRepository                = cityRepository;
     this.areaRepository                = areaRepository;
     this.phoneTypeRepository           = phoneTypeRepository;
     this.licenseTypeRepository         = licenseTypeRepository;
     this.operationRepository           = operationRepository;
     this.operationsWorkPlaceRepository = operationsWorkPlaceRepository;
     this.addressTypeRepository         = addressTypeRepository;
 }
Example #21
0
 /// <summary>
 /// Constructor
 /// </summary>
 public RegionService(IRegionRepository regionRepository, ICountryRepository countryRepository, ICityRepository cityRepository, ISubRegionRepository subRegionRepository)
 {
     this.regionRepository    = regionRepository;
     this.countryRepository   = countryRepository;
     this.cityRepository      = cityRepository;
     this.subRegionRepository = subRegionRepository;
 }
Example #22
0
 public TerritoryController(WorkersInMotionDB context)
 {
     this._IRegionRepository     = new RegionRepository(context);
     this._IMarketRepository     = new MarketRepository(context);
     this._ITerritoryRepository  = new TerritoryRepository(context);
     this._IGlobalUserRepository = new GlobalUserRepository(context);
 }
Example #23
0
 public RegionService(IRegionRepository regionRepository, ICountryRepository countryRepository, IWarningService warningService, ITransactionsService transactionService)
 {
     this.regionRepository   = regionRepository;
     this.countryRepository  = countryRepository;
     this.warningService     = warningService;
     this.transactionService = transactionService;
 }
Example #24
0
 public MapController(IPopupService popupService, IRegionRepository regionRepository, IPolygonRepository polygonRepository,
                      IResourceRepository resourceRepository) : base(popupService)
 {
     this.regionRepository   = regionRepository;
     this.polygonRepository  = polygonRepository;
     this.resourceRepository = resourceRepository;
 }
        public CongressVotingService(ICongressVotingRepository congressVotingRepository, IPartyMemberRepository partyMemberRepository, ICongressmenRepository congressmenRepository,
                                     IProductTaxRepository productTaxRepository, IWarningService warningService, ICompanyService companyService, IWalletService walletService, IRegionRepository regionRepository,
                                     IReservedEntityNameRepository reservedEntityNameRepository, ICongressVotingReservedMoneyRepository congressVotingReservedMoneyRepository, ITransactionsService transactionsService,
                                     ICompanyRepository companyRepository, ICitizenRepository citizenRepository, IVotingGreetingMessageRepository votingGreetingMessageRepository,
                                     IHospitalService hospitalService, ICountryRepository countryRepository, IRemovalService removalService,
                                     IDefenseSystemService defenseSystemService, IConstructionService constructionService, ICountryEventService countryEventService)

        {
            this.congressVotingRepository              = congressVotingRepository;
            this.partyMemberRepository                 = partyMemberRepository;
            this.congressmenRepository                 = congressmenRepository;
            this.productTaxRepository                  = productTaxRepository;
            this.warningService                        = warningService;
            this.companyService                        = companyService;
            this.walletService                         = walletService;
            this.regionRepository                      = regionRepository;
            this.reservedEntityNameRepository          = reservedEntityNameRepository;
            this.congressVotingReservedMoneyRepository = congressVotingReservedMoneyRepository;
            this.transactionsService                   = transactionsService;
            this.companyRepository                     = companyRepository;
            this.citizenRepository                     = citizenRepository;
            this.votingGreetingMessageRepository       = votingGreetingMessageRepository;
            this.hospitalService                       = hospitalService;
            this.countryRepository                     = countryRepository;
            this.removalService                        = removalService;
            this.constructionService                   = constructionService;
            this.defenseSystemService                  = defenseSystemService;
            this.countryEventService                   = countryEventService;
        }
Example #26
0
 public DataManager(
     ICityRepository cityRepository,
     ICountryRepository countryRepository,
     IFriendRequestRepository friendRequestRepository,
     IGroupNewseRepository groupNewseRepository,
     IGroupProfileRepository groupProfileRepository,
     IGroupRepository groupRepository,
     IGroupRequestRepository groupRequestRepository,
     IGroupTypeRepository groupTypeRepository,
     IMemberRoleRepository memberRoleRepository,
     IMessageRepository messageRepository,
     IRegionRepository regionRepository,
     IApplicationUserRepository userRepository,
     IUserProfileRepository userProfileRepository,
     IWallOfUserRepository wallOfUserRepository
     )
 {
     this.cityRepository          = cityRepository;
     this.countryRepository       = countryRepository;
     this.friendRequestRepository = friendRequestRepository;
     this.groupNewseRepository    = groupNewseRepository;
     this.groupProfileRepository  = groupProfileRepository;
     this.groupRepository         = groupRepository;
     this.groupRequestRepository  = groupRequestRepository;
     this.groupTypeRepository     = groupTypeRepository;
     this.memberRoleRepository    = memberRoleRepository;
     this.messagesRepository      = messageRepository;
     this.regionRepository        = regionRepository;
     this.userRepository          = userRepository;
     this.userProfileRepository   = userProfileRepository;
     this.wallOfUserRepository    = wallOfUserRepository;
 }
Example #27
0
        public ViewHospitalCompanyViewModel(Company company, IProductRepository productRepository, ICompanyService companyService, IHospitalService hospitalService, CompanyRights companyRights,
                                            IRegionService regionService, IRegionRepository regionRepository, IHospitalRepository hospitalRepository) : base(company, productRepository, companyService, companyRights, regionService, regionRepository)
        {
            var hospital = company.Hospital;

            Heal = new HospitalHealViewModel(hospital, hospitalService, hospitalRepository);
        }
 public RouteHandler(ICmsApiProxy cmsApiProxy, ILogger <CmsApiProxy> logger, IBusinessRepository businessRepository, IRegionRepository regionRepository)
 {
     _cmsApiProxy       = cmsApiProxy;
     _logger            = logger;
     BusinessRepository = businessRepository;
     _regionRepository  = regionRepository;
 }
Example #29
0
 public CountryController(ICountryRepository countryRepository, ICountryService countryService, IPresidentVotingRepository presidentVotingRepository, IWarService warService,
                          ITransactionsService transactionService, IWarRepository warRepository, IRegionService regionService, IRegionRepository regionRepository, IEmbargoService embargoService,
                          IEmbargoRepository embargoRepository, IWalletRepository walletRepository, IPopupService popupService, ICountryTreasureService countryTreasureService,
                          IWalletService walletService, ICompanyService companyService, IMPPService mppService, IMilitaryProtectionPactRepository mppRepository,
                          IMilitaryProtectionPactOfferRepository mppOfferRepository, ITransactionScopeProvider transactionScopeProvider, IConstructionRepository constructionRepository,
                          IConstructionService constructionService) : base(popupService)
 {
     this.countryRepository         = countryRepository;
     this.countryService            = countryService;
     this.presidentVotingRepository = presidentVotingRepository;
     this.warService               = warService;
     this.transactionService       = transactionService;
     this.warRepository            = warRepository;
     this.regionService            = regionService;
     this.regionRepository         = regionRepository;
     this.embargoService           = embargoService;
     this.embargoRepository        = embargoRepository;
     this.walletRepository         = walletRepository;
     this.countryTreasureService   = countryTreasureService;
     this.walletService            = walletService;
     this.companyService           = companyService;
     this.mppService               = mppService;
     this.mppRepository            = mppRepository;
     this.mppOfferRepository       = mppOfferRepository;
     this.transactionScopeProvider = transactionScopeProvider;
     this.constructionRepository   = constructionRepository;
     this.constructionService      = constructionService;
 }
Example #30
0
 public CountryService(ICountryRepository countryRepository,
                       ICitiyRepository citiyRepository, IRegionRepository regionRepository)
 {
     _countryRepository = countryRepository;
     _cityRepository    = citiyRepository;
     _regionRepository  = regionRepository;
 }
Example #31
0
 public RegionDiffServices(
     IRegionIbgeRepository ibgeRepository,
     IRegionRepository repository)
 {
     this._ibgeRepository = ibgeRepository;
     this._repository     = repository;
 }
Example #32
0
        /// <summary>
        /// Constructor
        /// </summary>
        public VehicleService(IVehicleRepository vehicleRepository, IOperationRepository operationRepository, IFleetPoolRepository fleetPoolRepository,
                              ICompanyRepository companyRepository, IRegionRepository regionRepository, IFuelTypeRepository fuelTypeRepository,
                              IVehicleMakeRepository vehicleMakeRepository, IVehicleStatusRepository vehicleStatusRepository, IDepartmentRepository departmentRepository,
                              ITransmissionTypeRepository transmissionTypeResposirory, IBusinessPartnerRepository businessPartnerRepository,
                              IInsuranceTypeRepository insuranceTypeRepository, IMaintenanceTypeRepository maintenanceTypeRepository, IVehicleCheckListRepository vehicleCheckListRepository,
                              IVehicleModelRepository vehicleModelRepository, IVehicleCategoryRepository vehicleCategoryRepository, IOperationsWorkPlaceRepository operationsWorkPlaceRepository,
                              IVehicleMaintenanceTypeFrequencyRepository maintenanceTypeFrequencyRepository, IVehicleCheckListItemRepository vehicleCheckListItemRepository)
        {
            if (vehicleRepository == null)
            {
                throw new ArgumentNullException("vehicleRepository");
            }

            this.vehicleRepository                  = vehicleRepository;
            this.operationRepository                = operationRepository;
            this.fleetPoolRepository                = fleetPoolRepository;
            this.companyRepository                  = companyRepository;
            this.regionRepository                   = regionRepository;
            this.fuelTypeRepository                 = fuelTypeRepository;
            this.vehicleMakeRepository              = vehicleMakeRepository;
            this.vehicleStatusRepository            = vehicleStatusRepository;
            this.departmentRepository               = departmentRepository;
            this.transmissionTypeResposirory        = transmissionTypeResposirory;
            this.businessPartnerRepository          = businessPartnerRepository;
            this.insuranceTypeRepository            = insuranceTypeRepository;
            this.maintenanceTypeRepository          = maintenanceTypeRepository;
            this.vehicleCheckListRepository         = vehicleCheckListRepository;
            this.vehicleModelRepository             = vehicleModelRepository;
            this.vehicleCategoryRepository          = vehicleCategoryRepository;
            this.operationsWorkPlaceRepository      = operationsWorkPlaceRepository;
            this.maintenanceTypeFrequencyRepository = maintenanceTypeFrequencyRepository;
            this.vehicleCheckListItemRepository     = vehicleCheckListItemRepository;
        }
Example #33
0
        public IBORegion BORegion(IRegionRepository repo)
        {
            BORegion boRegion = (BORegion)BORegion();

            boRegion.Repository = repo;
            return(boRegion);
        }
Example #34
0
 public CalculatorController(IPopupService popupService, IProductService productService, IRegionService regionService, IRegionRepository regionRepository,
                             ICompanyService companyService) : base(popupService)
 {
     this.productService   = productService;
     this.regionService    = regionService;
     this.regionRepository = regionRepository;
     this.companyService   = companyService;
 }
Example #35
0
 public IRegionRepository GetRegionRepository()
 {
     if (regionRepository == null)
     {
         regionRepository = new RegionViewRepository(context);
     }
     return(regionRepository);
 }
Example #36
0
 public RegionService(
     ILogger <RegionService> logger,
     IOptionsMonitor <AppOptions> appOptions,
     IRegionRepository regionRepository) : base(logger, appOptions)
 {
     Guard.Against.Null(regionRepository, nameof(regionRepository));
     _regionRepository = regionRepository;
 }
 public BusinessController(ILogger <BusinessController> logger, IBusinessRepository businessRepository, ICmsApiProxy apiProxy, ITagRepository tagRepository, IRegionRepository regionRepository)
 {
     _logger             = logger;
     _businessRepository = businessRepository;
     _apiProxy           = apiProxy;
     _tagRepository      = tagRepository;
     _regionRepository   = regionRepository;
 }
Example #38
0
 public RegionController(ITownRepository townRepository, IENodebRepository eNodebRepository,
     IBtsRepository btsRepository, IRegionRepository regionRepository)
 {
     this.townRepository = townRepository;
     this.eNodebRepository = eNodebRepository;
     this.regionRepository = regionRepository;
     this.btsRepository = btsRepository;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SearchController"/> class.
 /// </summary>
 /// <param name="county">The county.</param>
 /// Created by SMK
 public SearchController(ICountyRepository countyRepository, 
     IRegionRepository regionRepository,
     IAddressRepository addressRepository)
 {
     this.countyRepository = countyRepository;
     this.regionRepository = regionRepository;
     this.addressRepository = addressRepository;
 }
Example #40
0
 public SummonerService(ISummonerRepository summonerRepository, ILeagueApiService apiService, IRegionRepository regionRepository, IModelMapper<Summoner, SummonerModel> summonerModelMapper, ISecureTokenGenerator secureTokenGenerator)
 {
     _summonerRepository = summonerRepository;
     _apiService = apiService;
     _regionRepository = regionRepository;
     _summonerModelMapper = summonerModelMapper;
     _secureTokenGenerator = secureTokenGenerator;
 }
 /// <summary>
 /// Default constructor (no DI yet).
 /// </summary>
 public PetitionController()
 {
     this.petitionRepository = new PetitionRepository();
     this.petitionVoteRepository = new PetitionVoteRepository();
     this.petitionLevelRepository = new PetitionLevelRepository();
     this.entityRepository = new EntityRepository();
     this.regionRepository = new RegionRepository();
 }
 public JobController(WorkersInMotionDB context)
 {
     this._IPlaceRepository = new PlaceRepository(context);
     this._IMarketRepository = new MarketRepository(context);
     this._IRegionRepository = new RegionRepository(context);
     this._ITerritoryRepository = new TerritoryRepository(context);
     this._IJobRepository = new JobRepository(context);
     this._IJobSchemaRepository = new JobSchemaRepository(context);
 }
 public RegionViewModelBuilder(IRegionRepository regionRepository, ICountryRepository countryRepository,IDistrictRepository districtRepository,
 IProvincesRepository provinceRepository, IMasterDataUsage masterDataUsage)
 {
     _regionRepository = regionRepository;
     _countryRepository = countryRepository;
     _provinceRepository = provinceRepository;
     _districtRepository = districtRepository;
     _masterDataUsage = masterDataUsage;
 }
 public POController()
 {
     this._IPORepository = new PORepository(new WorkersInMotionDB());
     this._IPlaceRepository = new PlaceRepository(new WorkersInMotionDB());
     this._IMarketRepository = new MarketRepository(new WorkersInMotionDB());
     this._IJobRepository = new JobRepository(new WorkersInMotionDB());
     this._ITerritoryRepository = new TerritoryRepository(new WorkersInMotionDB());
     this._IRegionRepository = new RegionRepository(new WorkersInMotionDB());
 }
 public RegionController(IRegionRepository repository, IUnitOfWork unitOfWork,IRegion region, IRegionManager manager)
 {
     _repository = repository;
     _unitOfWork = unitOfWork;
     _repository.UnitOfWork = unitOfWork;
     _region = region;
     _manager = manager;
     _manager.RegionRepository = _repository;
 }
 public ServicePointController(WorkersInMotionDB context)
 {
     this._IPlaceRepository = new PlaceRepository(context);
     this._IPeopleRepository = new PeopleRepository(context);
     this._IMarketRepository = new MarketRepository(context);
     this._IUserProfileRepository = new UserProfileRepository(context);
     this._ITerritoryRepository = new TerritoryRepository(context);
     this._IRegionRepository = new RegionRepository(context);
 }
Example #47
0
        public RegionImportService(IRegionRepository regionrepository)
        {
            _regionrepository = regionrepository;

            _geodataserviceagent = new GeoDataServiceAgent();

            logger = LogManager.GetLogger(typeof(RegionImportService));
            logger.Debug("Initialisiert");
        }
Example #48
0
 public RegionOperationService(IRegionRepository repository,
     string cityName, string districtName, string regionName)
 {
     _repository = repository;
     _cityName = cityName;
     _districtName = districtName;
     _regionName = regionName;
     _service = new ByRegionQueryRegionService(_repository.GetAll(),
         _cityName, _districtName, _regionName);
 }
 public StoreVistController()
 {
     this._IPlaceRepository = new PlaceRepository(new WorkersInMotionDB());
     this._IUserProfileRepository = new UserProfileRepository(new WorkersInMotionDB());
     this._IPeopleRepository = new PeopleRepository(new WorkersInMotionDB());
     this._IMarketRepository = new MarketRepository(new WorkersInMotionDB());
     this._IRegionRepository = new RegionRepository(new WorkersInMotionDB());
     this._ITerritoryRepository = new TerritoryRepository(new WorkersInMotionDB());
     this._IJobRepository = new JobRepository(new WorkersInMotionDB());
 }
 public JobDetailsController()
 {
     this._IJobRepository = new JobRepository(new WorkersInMotionDB());
     this._IJobSchemaRepository = new JobSchemaRepository(new WorkersInMotionDB());
     this._IPlaceRepository = new PlaceRepository(new WorkersInMotionDB());
     this._IMarketRepository = new MarketRepository(new WorkersInMotionDB());
     this._IRegionRepository = new RegionRepository(new WorkersInMotionDB());
     this._ITerritoryRepository = new TerritoryRepository(new WorkersInMotionDB());
     this._IUserRepository = new UserRepository(new WorkersInMotionDB());
 }
Example #51
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;
 }
 public AssignJobController(WorkersInMotionDB context)
 {
     this._IGlobalUserRepository = new GlobalUserRepository(context);
     this._IPlaceRepository = new PlaceRepository(context);
     this._IMarketRepository = new MarketRepository(context);
     this._IRegionRepository = new RegionRepository(context);
     this._ITerritoryRepository = new TerritoryRepository(context);
     this._IJobRepository = new JobRepository(context);
     this._IJobSchemaRepository = new JobSchemaRepository(context);
     // this._IGroupRepository = new GroupRepository(context);
 }
        private static IRaceRepository _raceRepository; // = new RaceRepository();

        public ElectionMonitoringController(IRaceResultService raceResultRepository,
                                            IRegionRepository regionRepository, IRaceRepository raceRepository)
        {
            Guard.ArgumentNotNull(raceRepository, "raceRepository");
            Guard.ArgumentNotNull(regionRepository, "regionRepository");
            Guard.ArgumentNotNull(raceResultRepository, "raceResultRepository");

            _raceResultRepository = raceResultRepository;
            _regionRepository = regionRepository;
            _raceRepository = raceRepository;
        }
 public MarketController()
 {
     this._IPlaceRepository = new PlaceRepository(new WorkersInMotionDB());
     this._IUserProfileRepository = new UserProfileRepository(new WorkersInMotionDB());
     this._IPeopleRepository = new PeopleRepository(new WorkersInMotionDB());
     this._IMarketRepository = new MarketRepository(new WorkersInMotionDB());
     this._IRegionRepository = new RegionRepository(new WorkersInMotionDB());
     this._ITerritoryRepository = new TerritoryRepository(new WorkersInMotionDB());
     this._IUserRepository = new UserRepository(new WorkersInMotionDB());
     this._IGlobalUserRepository = new GlobalUserRepository(new WorkersInMotionDB());
 }
Example #55
0
        public TownENodebStat(Town town, IEnumerable<ENodeb> eNodebs, IRegionRepository regionRepository)
        {
            town.CloneProperties(this);
            TownId = town.Id;

            QueryRegionService service = new ByDistrictQueryRegionService(
                regionRepository.GetAll(), town.CityName, town.DistrictName);
            OptimizeRegion region = service.Query();
            RegionName = (region == null) ? "" : region.Region;
            TotalENodebs = eNodebs.Count(x => x.TownId == TownId);
        }
 public DistributorViewModelBuilder(IDistributorRepository distrepository, IRegionRepository regionrepository, IUserRepository userRepository, ICostCentreFactory costCentreFactory, IProducerRepository producerRepository, ICostCentreRepository costCentreRepository,IProductPricingTierRepository pricingTierRepository, IMasterDataUsage masterDataUsage)
 {
     _distrepository = distrepository;
     _regionrepository = regionrepository;
     _userRepository = userRepository;
     _costCentreFactory = costCentreFactory;
     _producerRepository = producerRepository;
     _costCentreRepository = costCentreRepository;
     _pricingTierRepository=pricingTierRepository;
     _masterDataUsage = masterDataUsage;
 }
Example #57
0
 public HubViewModelBuilder(IRegionRepository regionRepository, IContactRepository contactRepository,
                            IProducerRepository producerRepository, IHubRepository hubRepository,
                            ICommodityProducerRepository commodityProducerRepository, IMasterDataUsage masterDataUsage)
 {
     _regionRepository = regionRepository;
     _contactRepository = contactRepository;
     _producerRepository = producerRepository;
     _hubRepository = hubRepository;
     _commodityProducerRepository = commodityProducerRepository;
     _masterDataUsage = masterDataUsage;
 }
 public ConstituentController(IConstituentRepository constituentRepository
     , IProductHasConstituentRepository productHasConstituentRepository
     , ILocatedInRepository locatedInRepository
     , IUnitOfWorkFactory unitOfWorkFactory
     , IRegionRepository regionRepository)
 {
     _constituentRepository = constituentRepository;
     _unitOfWorkFactory = unitOfWorkFactory;
     _locatedInRepository = locatedInRepository;
     _productHasConstituentRepository = productHasConstituentRepository;
     _regionRepository = regionRepository;
 }
 public JobStatusController(WorkersInMotionDB context)
 {
     this._IGlobalUserRepository = new GlobalUserRepository(context);
     this._IUserProfileRepository = new UserProfileRepository(context);
     this._IPlaceRepository = new PlaceRepository(context);
     this._IMarketRepository = new MarketRepository(context);
     this._ITerritoryRepository = new TerritoryRepository(context);
     this._IRegionRepository = new RegionRepository(context);
     this._IUserRepository = new UserRepository(context);
     this._IJobRepository = new JobRepository(context);
     this._IPORepository = new PORepository(context);
 }
 public CentreViewModelBuilder(ICentreTypeRepository centreTypeRepository, IRouteRepository routeRepository,
                               ICentreRepository centreRepository,
                               IMasterDataAllocationRepository masterDataAllocationRepository, IRegionRepository regionRepository, ICostCentreRepository costCentreRepository, IMasterDataUsage masterDataUsage)
 {
     _centreTypeRepository = centreTypeRepository;
     _routeRepository = routeRepository;
     _centreRepository = centreRepository;
     _masterDataAllocationRepository = masterDataAllocationRepository;
     _regionRepository = regionRepository;
     _costCentreRepository = costCentreRepository;
     _masterDataUsage = masterDataUsage;
 }