Esempio n. 1
0
 public CountyPromotionEventController(ICountyService <CountyPromotionEventController> countyService,
                                       ICountyPromotionEventRepository countyPromotionEventRepository,
                                       ICountyPromotionEventBonusRepository countyPromotionEventBonusRepository) : base(countyService)
 {
     _countyPromotionEventRepository      = countyPromotionEventRepository;
     _countyPromotionEventBonusRepository = countyPromotionEventBonusRepository;
 }
Esempio n. 2
0
 public OrderController(IOrderService orderService, ICountryService countryService, IOrderStatusService orderStatusService, ICountyService countyService)
 {
     this.orderService       = orderService;
     this.countryService     = countryService;
     this.orderStatusService = orderStatusService;
     this.countyService      = countyService;
 }
Esempio n. 3
0
 public CountyController(ICompanyService companyService, ICountyService countyService, ICityService cityService, ICountryService countryService, ApplicationUserManager userManager, IEmployeeService employeeService, ApplicationRoleManager roleManager) : base(userManager, employeeService, roleManager)
 {
     this.companyService = companyService;
     this.countyService  = countyService;
     this.cityService    = cityService;
     this.countryService = countryService;
 }
 public CountyDayController(ICountyService <CountyDayController> countyService,
                            ICountyDayRepository countyDayRepository,
                            ICountyDayService countyDayService) : base(countyService)
 {
     _countyDayRepository = countyDayRepository;
     _countyDayService    = countyDayService;
 }
Esempio n. 5
0
 public CountyOrderController(ICountyService <CountyOrderController> service,
                              ICountyOrderRepository countyOrderRepository,
                              ICountyOrderService countyOrderService) : base(service)
 {
     _countyOrderRepository = countyOrderRepository;
     _countyOrderService    = countyOrderService;
 }
        public ShellViewModel(InfoViewModel infoVM, QuizViewModel quizVM, ICountyService countyService)
        {
            _infoVM        = infoVM;
            _quizVM        = quizVM;
            _countyService = countyService;

            SelectGameMode(GameMode.Info);
        }
Esempio n. 7
0
 public CompaniesController(ICompanyService companyService, ICountyService countyService, ICountryService countryService, ICityService cityService, ISectorService sectorService, IHostingEnvironment environment)
 {
     this.companyService = companyService;
     this.countyService  = countyService;
     this.countryService = countryService;
     this.cityService    = cityService;
     this.sectorService  = sectorService;
     this._environment   = environment;
 }
Esempio n. 8
0
 public ResumesController(IResumeService resumeService, IOccupationService occupationService, IHostingEnvironment _environment, ICountryService countryService, ICityService cityService, ICountyService countyService)
 {
     this._environment      = _environment;
     this.resumeService     = resumeService;
     this.occupationService = occupationService;
     this.countryService    = countryService;
     this.cityService       = cityService;
     this.countyService     = countyService;
 }
        public RegisterGardensController(IGardenService gardenServices, ICountyService countyService, IGardenTypeService gardenTypeService,
			IGardenSizeService gardenSizeService, IGardenReasonService gardenReasonService, IPlantTypeService plantTypeService)
        {
            GardenServices = gardenServices;
            CountyService = countyService;
            GardenTypeService = gardenTypeService;
            GardenSizeService = gardenSizeService;
            GardenReasonService = gardenReasonService;
            PlantTypeService = plantTypeService;
        }
Esempio n. 10
0
        public async Task WhenToRunTheCreateMethod()
        {
            _serviceMock = new Mock <ICountyService>();
            _serviceMock.Setup(m => m.Post(countyCreateDto)).ReturnsAsync(countyCreateResultDto);
            _serviceCounty = _serviceMock.Object;
            var result = await _serviceCounty.Post(countyCreateDto);

            Assert.NotNull(result);
            Assert.Equal(NameCounty, result.Name);
            Assert.Equal(CodeIbgeCounty, result.CodeIbge);
            Assert.Equal(FederalUnitId, result.FederalUnitId);
        }
Esempio n. 11
0
 public GeosynchronizationController(
     KosContext kosContext,
     IContextViewModelHelper contextViewModelHelper,
     IMunicipalityService municipalityService,
     ICountyService countyService
     )
 {
     _dbContext = kosContext;
     _contextViewModelHelper = contextViewModelHelper;
     _countyService          = countyService;
     _municipalityService    = municipalityService;
 }
        public async Task WhenToRunTheGetCompleteByIdMethod()
        {
            _serviceMock = new Mock <ICountyService>();
            _serviceMock.Setup(m => m.GetCompleteByIbge(CodeIbgeCounty)).ReturnsAsync(countyCompleteDto);
            _serviceCounty = _serviceMock.Object;
            var result = await _serviceCounty.GetCompleteByIbge(CodeIbgeCounty);

            Assert.NotNull(result);
            Assert.True(result.Id == IdCounty);
            Assert.Equal(NameCounty, result.Name);
            Assert.Equal(CodeIbgeCounty, result.CodeIbge);
            Assert.NotNull(result.FederalUnit);
        }
Esempio n. 13
0
 public SepetimController(IMenusService menuservice, ICommentService commentservice, IMenuNamesService menunameservice, ICategoryService categoryservice, IProductService productservice, INeighborhoodService neighborhoodservice, ICompaniesService companieservice, ICountyService countyservice, ISliderService sliderService, ICityService cityservice)
 {
     this._sliderService       = sliderService;
     this._cityservice         = cityservice;
     this._countyservice       = countyservice;
     this._companieservice     = companieservice;
     this._neighborhoodservice = neighborhoodservice;
     this._productservice      = productservice;
     this._categoryservice     = categoryservice;
     this._menunameservice     = menunameservice;
     this._commentservice      = commentservice;
     this._menuservice         = menuservice;
     _cacheProvider            = new CacheProvider();
 }
Esempio n. 14
0
 public DataQualityDistributionController(
     IContextViewModelHelper contextViewModelHelper,
     IDataQualityDistributionService dataQualityDistributionService,
     ICountyService countyService,
     IMunicipalityService municipalityService,
     ApplicationSettings applicationSettings)
 {
     _contextViewModelHelper         = contextViewModelHelper;
     _dataQualityDistributionService = dataQualityDistributionService;
     _countyService       = countyService;
     _municipalityService = municipalityService;
     _applicationSettings = applicationSettings;
     _urlAdminUnits       = _dataQualityDistributionService.GetAdminstrativeUnitsWmsUrl();
 }
 public DataQualityClassificationController(
     IContextViewModelHelper contextViewModelHelper,
     IDataQualityClassificationService dataQualityClassificationService,
     ICountyService countyService,
     IMunicipalityService municipalityService,
     ApplicationSettings applicationSettings)
 {
     _contextViewModelHelper           = contextViewModelHelper;
     _dataQualityClassificationService = dataQualityClassificationService;
     _countyService       = countyService;
     _municipalityService = municipalityService;
     _url           = _dataQualityClassificationService.GetWmsUrl();
     _urlAdminUnits = _dataQualityClassificationService.GetAdminstrativeUnitsWmsUrl();
     _metadataUrl   = applicationSettings.ExternalUrls.MetadataDataQualityClassification;
 }
Esempio n. 16
0
        public async Task WhenToRunTheGetAllMethod()
        {
            _serviceMock = new Mock <ICountyService>();
            _serviceMock.Setup(m => m.GetAll()).ReturnsAsync(listCountyDto);
            _serviceCounty = _serviceMock.Object;
            var result = await _serviceCounty.GetAll();

            Assert.NotNull(result);
            Assert.True(result.Count() == 10);
            var _listResult = new List <CountyDto>();

            _serviceMock = new Mock <ICountyService>();
            _serviceMock.Setup(m => m.GetAll()).ReturnsAsync(_listResult.AsEnumerable);
            _serviceCounty = _serviceMock.Object;
        }
Esempio n. 17
0
 public DirectUpdateInfoController(
     IMunicipalityService municipalityService,
     ICountyService countyService,
     IDataSetService dataSetService,
     IContextViewModelHelper contextViewModelHelper,
     IDirectUpdateInfoGeoJsonService geoJsonService,
     ApplicationSettings applicationSettings)
 {
     _municipalityService    = municipalityService;
     _countyService          = countyService;
     _dataSetService         = dataSetService;
     _contextViewModelHelper = contextViewModelHelper;
     _geoJsonService         = geoJsonService;
     _applicationSettings    = applicationSettings;
 }
Esempio n. 18
0
        public async Task WhenToRunTheDeleteMethod()
        {
            _serviceMock = new Mock <ICountyService>();
            _serviceMock.Setup(m => m.Delete(IdCounty)).ReturnsAsync(true);
            _serviceCounty = _serviceMock.Object;
            var result = await _serviceCounty.Delete(IdCounty);

            Assert.True(result);
            _serviceMock = new Mock <ICountyService>();
            _serviceMock.Setup(m => m.Delete(It.IsAny <Guid>())).ReturnsAsync(false);
            _serviceCounty = _serviceMock.Object;
            result         = await _serviceCounty.Delete(Guid.NewGuid());

            Assert.False(result);
        }
 public TransactionDataController(
     IContextViewModelHelper contextViewModelHelper,
     ITransactionDataService transactionDataService,
     ICountyService countyService,
     IMunicipalityService municipalityService,
     ApplicationSettings applicationSettings)
 {
     _contextViewModelHelper = contextViewModelHelper;
     _transactionDataService = transactionDataService;
     _countyService          = countyService;
     _municipalityService    = municipalityService;
     _dataSetToLayerMap      = applicationSettings.DataSetToLayerMap;
     _url           = _transactionDataService.GetWmsUrl();
     _urlAdminUnits = transactionDataService.GetAdminstrativeUnitsWmsUrl();
     _metadataUrl   = applicationSettings.ExternalUrls.MetadataTransactionData;
 }
        public async Task WhenToRunTheGetMethod()
        {
            _serviceMock = new Mock <ICountyService>();
            _serviceMock.Setup(m => m.Get(IdCounty)).ReturnsAsync(countyDto);
            _serviceCounty = _serviceMock.Object;
            var result = await _serviceCounty.Get(IdCounty);

            Assert.NotNull(result);
            Assert.True(result.Id == IdCounty);
            Assert.Equal(NameCounty, result.Name);
            Assert.Equal(CodeIbgeCounty, result.CodeIbge);
            _serviceMock = new Mock <ICountyService>();
            _serviceMock.Setup(m => m.Get(It.IsAny <Guid>())).Returns(Task.FromResult((CountyDto)null));
            _serviceCounty = _serviceMock.Object;
            result         = await _serviceCounty.Get(IdCounty);

            Assert.Null(result);
        }
Esempio n. 21
0
 public CountiesController(ICountyService countyService, IResumeService resumeService, ICityService cityService)
 {
     this.countyService = countyService;
     this.resumeService = resumeService;
     this.cityService   = cityService;
 }
 public ContextViewModelHelper(ICountyService countyService, IMunicipalityService municipalityService)
 {
     _countyService       = countyService;
     _municipalityService = municipalityService;
 }
 public Covid19Controller(ICountyService countyService, IGeocodingService geocodingService)
 {
     _countyService    = countyService;
     _geocodingService = geocodingService;
 }
 public CountyPromotionSeriesBonusController(ICountyService <CountyPromotionSeriesBonusController> countyService,
                                             ICountyPromotionSeriesBonusRepository countyPromotionSeriesBonusRepository) : base(countyService)
 {
     _countyPromotionSeriesBonusRepository = countyPromotionSeriesBonusRepository;
 }
Esempio n. 25
0
 public QuizManager(ICountyService countyService)
 {
     _countyService = countyService;
     ResetQuiz();
 }
Esempio n. 26
0
 public CountyProductSnapshotController(ICountyService <CountyProductSnapshotController> countyService,
                                        ICountyProductSnapshotRepository countyProductSnapshotRepository) : base(countyService)
 {
     _countyProductSnapshotRepository = countyProductSnapshotRepository;
 }
 public CountyController(ICountyService countyService)
 {
     this._countyService = countyService;
 }
Esempio n. 28
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CountyController"/> class.
 /// </summary>
 /// <param name="service">The service of type <see cref="ICountyService"/>.</param>
 public CountyController(ICountyService service)
 {
     countyService = service;
 }
Esempio n. 29
0
 public CountyAgentController(ICountyService <CountyAgentController> countyService,
                              ICountyAgentRepository countyAgentRepository) : base(countyService)
 {
     _countyAgentRepository = countyAgentRepository;
 }
Esempio n. 30
0
 public CountyPromotionGiftOrderController(ICountyService <CountyPromotionGiftOrderController> countyService,
                                           ICountyPromotionGiftOrderRepository countyPromotionGiftOrderRepository) : base(countyService)
 {
     _countyPromotionGiftOrderRepository = countyPromotionGiftOrderRepository;
 }
 public CitiesController(ICityService cityService, ICountyService countyService)
 {
     this._cityService   = cityService;
     this._countyService = countyService;
 }
 public ValidationFilterAttribute(ICountyService countyService, IGeocodingService geocodingService)
 {
     _countyService    = countyService;
     _geocodingService = geocodingService;
 }