コード例 #1
0
 public CountryController(ICountryService countryService,
     IStateProvinceService stateProvinceService,
     ICityService cityService,
     IZipcodeService zipcodeService,
     ILocalizationService localizationService,
     IAddressService addressService,
     IPermissionService permissionService,
     ILocalizedEntityService localizedEntityService,
     ILanguageService languageService,
     IStoreService storeService,
     IStoreMappingService storeMappingService,
     IExportManager exportManager,
     IImportManager importManager)
 {
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._cityService = cityService;
     this._zipcodeService = zipcodeService;
     this._localizationService = localizationService;
     this._addressService = addressService;
     this._permissionService = permissionService;
     this._localizedEntityService = localizedEntityService;
     this._languageService = languageService;
     this._storeService = storeService;
     this._storeMappingService = storeMappingService;
     this._exportManager = exportManager;
     this._importManager = importManager;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HotelTrafficService"/> class.
 /// </summary>
 /// <param name="hiService">The hi service.</param>
 /// <param name="ciService">The ci service.</param>
 public HotelTrafficService(IHotelInfoService hiService,
     ICityService ciService,
     iPow.Domain.Repository.ICityAreaCodeRepository cityAreaCode,
     IHotelAroundHotelService hahService,
     iPow.Domain.Repository.ISightInfoRepository sightInfo)
 {
     if (hiService == null)
     {
         throw new ArgumentNullException("ihotelinfoservice is null");
     }
     if (ciService == null)
     {
         throw new ArgumentNullException("cityservice is null");
     }
     if (cityAreaCode == null)
     {
         throw new ArgumentNullException("cityareacoderepository is null");
     }
     if (hahService == null)
     {
         throw new ArgumentNullException("hotelaroundhotelservice is null");
     }
     if (sightInfo == null)
     {
         throw new ArgumentNullException("sightinforepository is null");
     }
     hotelInfoService = hiService;
     cityService = ciService;
     cityAreaCodeRepository = cityAreaCode;
     hotelAroundHotelService = hahService;
     sightInfoRepository = sightInfo;
     Take = 10;
 }
コード例 #3
0
 public TrainingCenterController(ICityService cityService, IUnitOfWork unitOfWork, ITrainingCenterService TrainingCenterService, IStateService StateService)
 {
     _unitOfWork = unitOfWork;
     _trainingCenterService = TrainingCenterService;
     _stateService = StateService;
     _cityService = cityService;
 }
コード例 #4
0
ファイル: CityController.cs プロジェクト: UHgEHEP/test
		public CityController(
			ICityService cities,
			IIdentityService identity)
		{
			_cities = cities;
			_identity = identity;
		}
コード例 #5
0
 public FareTemplateController(IPermissionService permissionService, IFareTemplateService faretemplateservice, IStateProvinceService stateprovinceservice, ICityService cityservice, IStreetService streetservice)
 {
     _permissionService = permissionService;
     _faretemplateservice = faretemplateservice;
     _stateprovinceservice = stateprovinceservice;
     _cityservice = cityservice;
     _streetservice = streetservice;
 }
コード例 #6
0
 public TourManagementController(ITourService tourService, ICityService cityService, IHotelService hotelService)
 {
     this.tourService = tourService;
     this.cityService = cityService;
     this.hotelService = hotelService;
     Mapper.CreateMap<TourViewModel, TourDto>();
     Mapper.CreateMap<TourDto, TourViewModel>();
 }
コード例 #7
0
        public CountriesController(ILogger logger, IUnitOfWork unitOfWork, ICountryService countryService, ICityService cityService)
            : base(logger, unitOfWork)
        {
            Requires.NotNull(countryService, "countryService");
            Requires.NotNull(cityService, "cityService");

            _countryService = countryService;
            _cityService = cityService;
        }
コード例 #8
0
ファイル: AddressServices.cs プロジェクト: rabbal/Decision
 public AddressService(IUnitOfWork unitOfWork, IApplicationUserManager userManager, IMappingEngine mappingEngine, IStateService stateService, ICityService cityService)
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _addresses = _unitOfWork.Set<Address>();
     _mappingEngine = mappingEngine;
     _cityService = cityService;
     _stateService = stateService;
 }
コード例 #9
0
 public GeoManagementController(
     ICountryService countryService,
     ICityService cityService,
     IHotelService hotelService)
 {
     this.countryService = countryService;
     this.cityService = cityService;
     this.hotelService = hotelService;
 }
コード例 #10
0
 public WorkExperienceService(IUnitOfWork unitOfWork, ICityService cityService, IStateService stateService, IApplicationUserManager userManager, IMappingEngine mappingEngine)
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _workExperiences = _unitOfWork.Set<WorkExperience>();
     _mappingEngine = mappingEngine;
     _cityService = cityService;
     _stateService = stateService;
 }
コード例 #11
0
        public PlaceApiController(IPackageService PackageService, ICityService CityService, ICountryService CountryService, IStateService StateService, INotificationService NotificationService, ICustomerService CustomerService)
        {
            this._NotificationService = NotificationService;

            this._CustomerService = CustomerService;

            this._CityService    = CityService;
            this._StateService   = StateService;
            this._CountryService = CountryService;
        }
コード例 #12
0
 public RestaurantsController(IRestaurantService restaurantService,
                              IUserService usersService,
                              ICityService cityService,
                              ICloudinaryService cloudinaryService)
 {
     this.restaurantService = restaurantService;
     this.usersService      = usersService;
     this.cityService       = cityService;
     this.cloudinaryService = cloudinaryService;
 }
コード例 #13
0
 public CoachController(ITeamService teamService, ICoachService сoachService, IMapper mapper, IConfiguration configuration, ICityService cityService)
 {
     _teamService              = teamService ?? throw new ArgumentNullException(Resources.Exceptions.teamServiceNullException);
     _сoachService             = сoachService ?? throw new ArgumentNullException(Resources.Exceptions.coachServiceNullException);
     _cityService              = cityService ?? throw new ArgumentNullException(Resources.Exceptions.coachServiceNullException);
     _mapper                   = mapper ?? throw new ArgumentNullException(Resources.Exceptions.mapper);
     _configuration            = configuration;
     coachFolder               = _configuration.GetValue <string>("avatar:coach");
     _сoachService.CoachFolder = coachFolder;
 }
コード例 #14
0
 public EventController(IEventService eventService,
                        ICategoryService categoryService, IVenueService venueService,
                        IAction <EventDTO, Event> action, ICityService cityService)
 {
     _eventService    = eventService;
     _categoryService = categoryService;
     _venueService    = venueService;
     _action          = action;
     _cityService     = cityService;
 }
コード例 #15
0
 public CountryController(ICountryService service,
                          IProvinceService provinceProvider,
                          IMapper mapper,
                          ICityService cityProvider)
 {
     this._countryProvider  = service;
     this._mapper           = mapper;
     this._provinceProvider = provinceProvider;
     this._cityProvider     = cityProvider;
 }
コード例 #16
0
        public CityList()
        {
            // Get required services
            cityService = DependencyResolver.Kernel.Get <ICityService>();

            // Initialize form components
            InitializeComponent();

            this.DataContext = this;
        }
コード例 #17
0
 public CompanyController(IAddressService addressService, ICompanyService companyService, ILogger <CompanyController> logger,
                          IProvinceService provinceService, ICityService cityService, IWebHostEnvironment webHostEnvironment)
 {
     _companyService         = companyService;
     this.webHostEnvironment = webHostEnvironment;
     _addressService         = addressService;
     _cityService            = cityService;
     _provinceService        = provinceService;
     _logger = logger;
 }
コード例 #18
0
        public ClientPage(IClientService clientService, ICityService cityService, IOptions <AppSettings> settings,
                          IMapper mapper)
        {
            _clientService = clientService;
            _cityService   = cityService;
            _settings      = settings.Value;
            _mapper        = mapper;

            InitializeComponent();
        }
 public SearchForm()
 {
     InitializeComponent();
     _adService    = InstanceFactory.GetInstance <IAdService>();
     _cityService  = InstanceFactory.GetInstance <ICityService>();
     _colorService = InstanceFactory.GetInstance <IColorService>();
     _carsService  = InstanceFactory.GetInstance <ICarsService>();
     _gearService  = InstanceFactory.GetInstance <IGearService>();
     _fuelService  = InstanceFactory.GetInstance <IFuelService>();
 }
コード例 #20
0
 public CityServiceTests()
 {
     _mockRepo = new Mock <IRepository>();
     _mockRepo.Setup(
         x => x.GetAll <City>(null, null, null))
     .Returns(this.GetTestCities());
     _mockRepo.Setup(x => x.GetById <City>(1)).Returns(this.GetTestCity);
     _mockRepo.Setup(x => x.GetOne(It.IsAny <Expression <Func <City, bool> > >())).Returns(this.GetTestCity);
     _citiesService = new CityService(_mockRepo.Object);
 }
コード例 #21
0
 public CitiesController(ICityService cityService,
                         IWheatherForeCastService wheatherForeCastService,
                         IHubContext <KiosksHub> kiosksHub,
                         IOnlineScreenService onlineScreenService)
 {
     this.onlineScreenService     = onlineScreenService;
     this.cityService             = cityService;
     this.wheatherForeCastService = wheatherForeCastService;
     this.kiosksHub = kiosksHub;
 }
コード例 #22
0
 public StudentController(IStudentService studentService, ICityService cityService, IDepartmentService departmentService, IEducationTypeService educationTypeService, IFacultyService facultyService, IGraduateTypeService graduateTypeService, IUniversityService universityService)
 {
     _studentService       = studentService;
     _cityService          = cityService;
     _departmentService    = departmentService;
     _educationTypeService = educationTypeService;
     _facultyService       = facultyService;
     _graduateTypeService  = graduateTypeService;
     _universityService    = universityService;
 }
コード例 #23
0
ファイル: CItyController.cs プロジェクト: Toxa2202/plast
 public CityController(ILoggerService <CityController> logger,
                       ICityService cityService,
                       ICityMembersService cityMembersService,
                       IMapper mapper)
 {
     _logger             = logger;
     _cityService        = cityService;
     _cityMembersService = cityMembersService;
     _mapper             = mapper;
 }
コード例 #24
0
 public GarageService(IGarageRepository repository,
                      ICityService cityService,
                      IAddressService addressService,
                      IPricelistService pricelistService)
     : base(repository)
 {
     CityService      = cityService;
     AddressService   = addressService;
     PricelistService = pricelistService;
 }
コード例 #25
0
 public ProductController(IProductService productService, ISubCategoryService subCategoryService, ICategoryservice categoryService, IBrandService brandService, ICityService cityService, IFileProvider fileProvider, IHostingEnvironment env)
 {
     _productService     = productService;
     _brandService       = brandService;
     _categoryService    = categoryService;
     _subCategoryService = subCategoryService;
     _cityService        = cityService;
     _fileProvider       = fileProvider;
     _env = env;
 }
コード例 #26
0
 public GenerateDataController(ICityService cityService, ICountryService countryService,
                               IUserService userService, IPostService postService, ITripService tripService, IImageService imageService)
 {
     this.cityService    = cityService;
     this.countryService = countryService;
     this.userService    = userService;
     this.postService    = postService;
     this.tripService    = tripService;
     this.imageService   = imageService;
 }
コード例 #27
0
ファイル: CartController.cs プロジェクト: war-man/ETrade
 public CartController(ICartService cartService, ICartSessionHelper cartSessionHelper, IProductService productService, IShippingDetailService shippingDetailService, IUserService userService, ICityService cityService, IOrderService orderService)
 {
     _cartService           = cartService;
     _cartSessionHelper     = cartSessionHelper;
     _productService        = productService;
     _shippingDetailService = shippingDetailService;
     _userService           = userService;
     _cityService           = cityService;
     _orderService          = orderService;
 }
コード例 #28
0
ファイル: ProfileController.cs プロジェクト: dcollioni/BrMobi
 public ProfileController(IAccountService accountService,
     IStateService stateService,
     ICityService cityService,
     IMessageService messageService)
 {
     this.accountService = accountService;
     this.stateService = stateService;
     this.cityService = cityService;
     this.messageService = messageService;
 }
コード例 #29
0
 public AnnualReportController(ILoggerService <AnnualReportController> loggerService, IMapper mapper, IAnnualReportService annualReportService, ICityAccessService cityAccessService,
                               ICityMembersService cityMembersService, ICityService cityService)
 {
     _loggerService       = loggerService;
     _mapper              = mapper;
     _annualReportService = annualReportService;
     _cityAccessService   = cityAccessService;
     _cityMembersService  = cityMembersService;
     _cityService         = cityService;
 }
コード例 #30
0
 public IPeopleController(IPeopelService peopleservice,
                          ICityService cityService,
                          ILanguageService languageService,
                          IPersonLanguageService personLanguageServic) //constructur for Dependency injection
 {
     _peopleService         = peopleservice;
     _cityService           = cityService;
     _languageService       = languageService;
     _personLanguageService = personLanguageServic;
 }
コード例 #31
0
 public CreateAdvertPresenter(ICreateAdvertView view, 
     IAdvertCategoryService adCategoryService, ICityService cityService, IAdvertsService adsService) 
     : base(view)
 {
     this.advertsCategoryService = adCategoryService;
     this.cityService = cityService;
     this.advertsService = adsService;
     this.View.CustomOnInit += View_CustomOnInit;
     this.View.OnCreateAdvert += View_OnCreateAdvert;
 }
コード例 #32
0
 public ListingController(IEscortTypeService escortTypeService,
                          IServiceService serviceService,
                          IEscortService escortService,
                          ICityService cityService)
 {
     this.escortTypeService = escortTypeService;
     this.serviceService    = serviceService;
     this.escortService     = escortService;
     this.cityService       = cityService;
 }
コード例 #33
0
 public UsersController(IUserService iuserService, ICityService icityService, ITownService itownService, IGuideService iguidService, IClassifyService iclassifyService, IFavoriteService ifavoriteService, ICategoryService iCategoryService)
 {
     _iuserService     = iuserService;
     _iclassifyService = iclassifyService;
     _ifavoriteService = ifavoriteService;
     _iCategoryService = iCategoryService;
     _iguidService     = iguidService;
     _icityService     = icityService;
     _itownService     = itownService;
 }
コード例 #34
0
 public CalculatorCostService(CalculatorContext context,
                              ICityService cityService,
                              IModuleService moduleService,
                              ISearchHistoryService searchHistoryService)
 {
     this.context              = context;
     this.cityService          = cityService;
     this.moduleService        = moduleService;
     this.searchHistoryService = searchHistoryService;
 }
コード例 #35
0
 public EmployeeController(IEmpDBContext empDBContext, IEmployeeService empService, ICityService cityService, IStateService stateService, IJobService jobService, IDepartmentService departmentService, IWorkingDayService workingdaysService, IShiftService shiftsService)
 {
     db = empDBContext;
     _empService = empService;
     _stateService = stateService;
     _cityService = cityService;
     _jobService = jobService;
     _departmentService = departmentService;
     _workingdayService = workingdaysService;
     _shiftService = shiftsService;
 }
コード例 #36
0
 public HomeController(
     IUserService userService,
     IFavoriteService favorService,
     IClubService clubService,
     ICityService cityService)
 {
     this.userService  = userService;
     this.favorService = favorService;
     this.clubService  = clubService;
     this.cityService  = cityService;
 }
コード例 #37
0
 public HomeController(ITrainSearchService <Info, SearchTrainsModel> trainSearchService, IMapperControl mapperControl,
                       ICityService cityService, IPriceCalculateService priceCalculateService)
 {
     this.trainSearchService    = trainSearchService;
     this.mapperControl         = mapperControl;
     this.cityService           = cityService;
     this.priceCalculateService = priceCalculateService;
     InfoItems         = new InfoViewModel();
     CarInfoViewModels = new List <CarInfoViewModel>();
     RouteInfo         = new RouteInfoViewModel();
 }
        public void ThrowArgumentNullException_WhenCityServiceParameterIsNull()
        {
            // Arrange
            var          advertService = new Mock <IAdvertService>();
            ICityService cityService   = null;
            var          modelService  = new Mock <IVehicleModelService>();

            // Act and Assert
            Assert.Throws <ArgumentNullException>(() =>
                                                  new CRUDAdvertController(advertService.Object, cityService, modelService.Object));
        }
コード例 #39
0
 public TrainingCenterService(IUnitOfWork unitOfWork, IApplicationUserManager userManager,
     IStateService StateService, ICityService cityService,
     IMappingEngine mappingEngine)
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _trainingCenters = _unitOfWork.Set<TrainingCenter>();
     _mappingEngine = mappingEngine;
     _cityService = cityService;
     _stateService = StateService;
 }
コード例 #40
0
ファイル: MainViewModel.cs プロジェクト: aritzcovan/ezweather
 public MainViewModel(ICityService cityService, IWeatherService weatherService, IMessenger messenger)
 {
     IncrementRunCount();
     CheckForPreviousException();
     _cityService = cityService;
     _weatherService = weatherService;
     _messenger = messenger;
     _messenger.Register<RefreshMessage>(this, HandleRefreshMessage);
     Cities = _cityService.Cities;
     LoadWeather();
 }
コード例 #41
0
        public void Constructor_Should_ThrowArgumentNullException_WhenPassedParametersAreNull()
        {
            // Arrange
            IAdvertService       advertService       = null;
            IMappingService      mappingService      = null;
            ICityService         cityService         = null;
            IVehicleModelService vehicleModelService = null;

            // Act and Assert
            Assert.Throws <ArgumentNullException>(() => new AdvertController(advertService, mappingService, vehicleModelService, cityService));
        }
コード例 #42
0
 public HomeController(ILogger <HomeController> logger,
                       IBloodGroupService bloodGroupService,
                       ICityService cityService,
                       UserManager <ApplicationUser> userManager
                       )
 {
     _logger = logger;
     this.bloodGroupService = bloodGroupService;
     this.cityService       = cityService;
     this.userManager       = userManager;
 }
コード例 #43
0
 public AdsController(IAdService adService, ICityService cityService, IWishlistService wishlistService, ICategoryService categoryService, ICountryService countryService, ILocalizationService localizationService, UserManager <ApplicationUser> userManager, ILogger <AdsController> logger)
 {
     _wishlistService     = wishlistService;
     _adService           = adService;
     _cityService         = cityService;
     _categoryService     = categoryService;
     _countryService      = countryService;
     _localizationService = localizationService;
     _userManager         = userManager;
     _logger = logger;
 }
コード例 #44
0
        public CityPopup()
        {
            cityService = DependencyResolver.Kernel.Get <ICityService>();

            InitializeComponent();

            // MVVM Data binding
            (this.Content as FrameworkElement).DataContext = this;

            AddHandler(Keyboard.PreviewKeyDownEvent, (KeyEventHandler)HandleKeyDownEvent);
        }
コード例 #45
0
ファイル: ApplicantService.cs プロジェクト: rabbal/Decision
 public ApplicantService(HttpContextBase httpContextBase, IUnitOfWork unitOfWork, IApplicationUserManager userManager,
     IMappingEngine mappingEngine, IStateService stateService, ICityService cityService
     )
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _applicants = _unitOfWork.Set<Applicant>();
     _mappingEngine = mappingEngine;
     _cityService = cityService;
     _stateService = stateService;
     _httpContextBase = httpContextBase;
 }
コード例 #46
0
 public TeacherController(IUnitOfWork unitOfWork, IApplicationUserManager userManager, IReferentialTeacherService referentialTeacherService,
     ITrainingCenterService trainingCenterService, ITrainingCourseService trainingCourseService, ITitleService titleService,
     ITeacherService TeacherService, IStateService stateService, ICityService cityService)
 {
     _unitOfWork = unitOfWork;
     _userManager = userManager;
     _TeacherService = TeacherService;
     _stateService = stateService;
     _cityService = cityService;
     _trainingCenterService = trainingCenterService;
     _titleService = titleService;
     _referentialTeacherService = referentialTeacherService;
 }
コード例 #47
0
        public WeatherViewModel(INavigationService navigation, IWeatherService service, ICityService cityService)
        {
            _navigationService = navigation;
            _service = service;
            _cityService = cityService;
            _weatherForecast = new ObservableCollection<WeatherForecast>();
            _currentConditions = new CurrentWeatherConditions();

            ToAddCityCommand = new RelayCommand(() => _navigationService.Navigate(new Uri("/View/AddCityView.xaml", UriKind.Relative)));
            LoadCities();
            //load the weather
            LoadWeather();
        }
コード例 #48
0
ファイル: TeacherService.cs プロジェクト: raminmjj/Decision
 public TeacherService(HttpContextBase httpContextBase, IUnitOfWork unitOfWork, IApplicationUserManager userManager, ITrainingCenterService trainingCenter, ITrainingCourseService trainingCourse,
     IMappingEngine mappingEngine, IReferentialTeacherService referentialTeacherService, ITitleService titleService, IStateService stateService, ICityService cityService
     )
 {
     _userManager = userManager;
     _unitOfWork = unitOfWork;
     _Teachers = _unitOfWork.Set<Teacher>();
     _mappingEngine = mappingEngine;
     _cityService = cityService;
     _stateService = stateService;
     _titleService = titleService;
     _httpContextBase = httpContextBase;
     _referentialTeacherService = referentialTeacherService;
     _trainingCenterService = trainingCenter;
     _trainingCourseService = trainingCourse;
 }
コード例 #49
0
 public ProductController(ICategoryService categoryService, 
     IManufacturerService manufacturerService,
     IProductService productService, 
     IVendorService vendorService,
     IProductTemplateService productTemplateService,
     IProductAttributeService productAttributeService,
     IWorkContext workContext, 
     IStoreContext storeContext,
     ITaxService taxService, 
     ICurrencyService currencyService,
     IPictureService pictureService, 
     ILocalizationService localizationService,
     IPriceCalculationService priceCalculationService,
     IPriceFormatter priceFormatter,
     IWebHelper webHelper, 
     ISpecificationAttributeService specificationAttributeService,
     IDateTimeHelper dateTimeHelper,
     IRecentlyViewedProductsService recentlyViewedProductsService,
     ICompareProductsService compareProductsService,
     IWorkflowMessageService workflowMessageService, 
     IProductTagService productTagService,
     IOrderReportService orderReportService, 
     IAclService aclService,
     IStoreMappingService storeMappingService,
     IPermissionService permissionService, 
     ICustomerActivityService customerActivityService,
     IProductAttributeParser productAttributeParser,
     IShippingService shippingService,
     MediaSettings mediaSettings,
     CatalogSettings catalogSettings,
     VendorSettings vendorSettings,
     ShoppingCartSettings shoppingCartSettings,
     LocalizationSettings localizationSettings, 
     CustomerSettings customerSettings, 
     CaptchaSettings captchaSettings,
     SeoSettings seoSettings,
     ICacheManager cacheManager,
     IProductCitiesService productCitiesService,
     ICityService cityService,
     IZipcodeService zipcodeService)
 {
     this._categoryService = categoryService;
     this._manufacturerService = manufacturerService;
     this._productService = productService;
     this._vendorService = vendorService;
     this._productTemplateService = productTemplateService;
     this._productAttributeService = productAttributeService;
     this._workContext = workContext;
     this._storeContext = storeContext;
     this._taxService = taxService;
     this._currencyService = currencyService;
     this._pictureService = pictureService;
     this._localizationService = localizationService;
     this._priceCalculationService = priceCalculationService;
     this._priceFormatter = priceFormatter;
     this._webHelper = webHelper;
     this._specificationAttributeService = specificationAttributeService;
     this._dateTimeHelper = dateTimeHelper;
     this._recentlyViewedProductsService = recentlyViewedProductsService;
     this._compareProductsService = compareProductsService;
     this._workflowMessageService = workflowMessageService;
     this._productTagService = productTagService;
     this._orderReportService = orderReportService;
     this._aclService = aclService;
     this._storeMappingService = storeMappingService;
     this._permissionService = permissionService;
     this._customerActivityService = customerActivityService;
     this._productAttributeParser = productAttributeParser;
     this._shippingService = shippingService;
     this._mediaSettings = mediaSettings;
     this._catalogSettings = catalogSettings;
     this._vendorSettings = vendorSettings;
     this._shoppingCartSettings = shoppingCartSettings;
     this._localizationSettings = localizationSettings;
     this._customerSettings = customerSettings;
     this._captchaSettings = captchaSettings;
     this._seoSettings = seoSettings;
     this._cacheManager = cacheManager;
        this._productCitiesService = productCitiesService;
     this._cityService =cityService;
     this._zipcodeService = zipcodeService;
 }
コード例 #50
0
 public CityAppService(ICityService cityService)
 {
     _service = cityService;
 }
コード例 #51
0
 public CitiesAdministrationController(ICityService cities)
 {
     this.cities = cities;
 }
コード例 #52
0
        public CreateAccountViewModel(ILoggerFacade logger, IEventAggregator eventAggregator,
            ICurrencyService currencyService, IAccountTypeService accountTypeService, IEmailTypeService emailTypeService,
            IGenderService genderService, ICountryService countryService, ICityService cityService)
            : base(logger, eventAggregator)
        {
            Requires.NotNull(currencyService, "currencyService");
            Requires.NotNull(accountTypeService, "accountTypeService");
            Requires.NotNull(accountTypeService, "emailTypeService");
            Requires.NotNull(genderService, "genderService");
            Requires.NotNull(countryService, "countryService");
            Requires.NotNull(cityService, "cityService");

            _currencyService = currencyService;
            _accountTypeService = accountTypeService;
            _emailTypeService = emailTypeService;
            _genderService = genderService;
            _countryService = countryService;
            _cityService = cityService;

            _lazyLoadedCommand = new Lazy<ICommand>(() => new DelegateCommand(OnLoaded));
            _lazyApplyCommand = new Lazy<ICommand>(() => new DelegateCommand(OnApply, CanApply));
            _account = new CreateAccountModel();
        }
コード例 #53
0
 public AddCityViewModel(ICityService cityService, IMessenger messenger, IWeatherService weatherService)
     : base(messenger)
 {
     _cityService = cityService;
     _weatherService = weatherService;
 }
コード例 #54
0
ファイル: CityController.cs プロジェクト: raminmjj/Decision
		public CityController(IUnitOfWork unitOfWork,ICityService cityService){
		_unitOfWork=unitOfWork;
		_cityService=cityService;
		}
コード例 #55
0
 public CheckoutController(IWorkContext workContext,
     IStoreContext storeContext,
     IStoreMappingService storeMappingService,
     IShoppingCartService shoppingCartService,
     ILocalizationService localizationService,
     ITaxService taxService,
     ICurrencyService currencyService,
     IPriceFormatter priceFormatter,
     IOrderProcessingService orderProcessingService,
     ICustomerService customerService,
     IGenericAttributeService genericAttributeService,
     ICountryService countryService,
     IStateProvinceService stateProvinceService,
     IShippingService shippingService,
     IPaymentService paymentService,
     IPluginFinder pluginFinder,
     IOrderTotalCalculationService orderTotalCalculationService,
     ILogger logger,
   CatalogSettings catalogSettings,
     IOrderService orderService,
     IWebHelper webHelper,
     HttpContextBase httpContext,
     IAddressAttributeParser addressAttributeParser,
     IAddressAttributeService addressAttributeService,
     IAddressAttributeFormatter addressAttributeFormatter,
     OrderSettings orderSettings,
     RewardPointsSettings rewardPointsSettings,
     PaymentSettings paymentSettings,
     ShippingSettings shippingSettings,
     AddressSettings addressSettings,IAddressService addressService,
     IProductCitiesService productCitiesService,
     ICityService cityService,
     IZipcodeService zipcodeService)
 {
     this._workContext = workContext;
     this._storeContext = storeContext;
     this._storeMappingService = storeMappingService;
     this._shoppingCartService = shoppingCartService;
     this._localizationService = localizationService;
     this._taxService = taxService;
     this._currencyService = currencyService;
     this._priceFormatter = priceFormatter;
     this._orderProcessingService = orderProcessingService;
     this._customerService = customerService;
     this._genericAttributeService = genericAttributeService;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._shippingService = shippingService;
     this._paymentService = paymentService;
     this._pluginFinder = pluginFinder;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._logger = logger;
     this._orderService = orderService;
     this._webHelper = webHelper;
     this._httpContext = httpContext;
     this._addressAttributeParser = addressAttributeParser;
     this._addressAttributeService = addressAttributeService;
     this._addressAttributeFormatter = addressAttributeFormatter;
     this._catalogSettings = catalogSettings;
     this._orderSettings = orderSettings;
     this._rewardPointsSettings = rewardPointsSettings;
     this._paymentSettings = paymentSettings;
     this._shippingSettings = shippingSettings;
     this._addressSettings = addressSettings;
     this._addressService = addressService;
        this._productCitiesService = productCitiesService;
        this._cityService = cityService;
        this._zipcodeService = zipcodeService;
 }
コード例 #56
0
ファイル: CityController.cs プロジェクト: jvaleroso/Directory
 public CityController(ICityService cityService, IProvinceService provinceService)
 {
     _cityService = cityService;
     _provinceService = provinceService;
 }
コード例 #57
0
ファイル: GridController.cs プロジェクト: sdf333/MVCDEMO
 public GridController(ICityService cityService)
 {
     _cityService = cityService;
 }
コード例 #58
0
ファイル: ProductService.cs プロジェクト: LaOrigin/Leorigin
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="productRepository">Product repository</param>
 /// <param name="relatedProductRepository">Related product repository</param>
 /// <param name="crossSellProductRepository">Cross-sell product repository</param>
 /// <param name="tierPriceRepository">Tier price repository</param>
 /// <param name="localizedPropertyRepository">Localized property repository</param>
 /// <param name="aclRepository">ACL record repository</param>
 /// <param name="storeMappingRepository">Store mapping repository</param>
 /// <param name="productPictureRepository">Product picture repository</param>
 /// <param name="productSpecificationAttributeRepository">Product specification attribute repository</param>
 /// <param name="productReviewRepository">Product review repository</param>
 /// <param name="productWarehouseInventoryRepository">Product warehouse inventory repository</param>
 /// <param name="productAttributeService">Product attribute service</param>
 /// <param name="productAttributeParser">Product attribute parser service</param>
 /// <param name="languageService">Language service</param>
 /// <param name="workflowMessageService">Workflow message service</param>
 /// <param name="dataProvider">Data provider</param>
 /// <param name="dbContext">Database Context</param>
 /// <param name="workContext">Work context</param>
 /// <param name="storeContext">Store context</param>
 /// <param name="localizationSettings">Localization settings</param>
 /// <param name="commonSettings">Common settings</param>
 /// <param name="catalogSettings">Catalog settings</param>
 /// <param name="eventPublisher">Event published</param>
 /// <param name="aclService">ACL service</param>
 /// <param name="storeMappingService">Store mapping service</param>
 public ProductService(ICacheManager cacheManager,
     IRepository<Product> productRepository,
     IRepository<RelatedProduct> relatedProductRepository,
     IRepository<CrossSellProduct> crossSellProductRepository,
     IRepository<TierPrice> tierPriceRepository,
     IRepository<ProductPicture> productPictureRepository,
     IRepository<LocalizedProperty> localizedPropertyRepository,
     IRepository<AclRecord> aclRepository,
     IRepository<StoreMapping> storeMappingRepository,
     IRepository<ProductSpecificationAttribute> productSpecificationAttributeRepository,
     IRepository<ProductReview>  productReviewRepository,
     IRepository<ProductWarehouseInventory> productWarehouseInventoryRepository,
     IProductAttributeService productAttributeService,
     IProductAttributeParser productAttributeParser,
     ILanguageService languageService,
     IWorkflowMessageService workflowMessageService,
     IDataProvider dataProvider, 
     IDbContext dbContext,
     IWorkContext workContext,
     IStoreContext storeContext,
     LocalizationSettings localizationSettings, 
     CommonSettings commonSettings,
     CatalogSettings catalogSettings,
     IEventPublisher eventPublisher,
     IAclService aclService,
     IStoreMappingService storeMappingService,
     ICityService cityService
     )
 {
     this._cacheManager = cacheManager;
     this._productRepository = productRepository;
     this._relatedProductRepository = relatedProductRepository;
     this._crossSellProductRepository = crossSellProductRepository;
     this._tierPriceRepository = tierPriceRepository;
     this._productPictureRepository = productPictureRepository;
     this._localizedPropertyRepository = localizedPropertyRepository;
     this._aclRepository = aclRepository;
     this._storeMappingRepository = storeMappingRepository;
     this._productSpecificationAttributeRepository = productSpecificationAttributeRepository;
     this._productReviewRepository = productReviewRepository;
     this._productWarehouseInventoryRepository = productWarehouseInventoryRepository;
     this._productAttributeService = productAttributeService;
     this._productAttributeParser = productAttributeParser;
     this._languageService = languageService;
     this._workflowMessageService = workflowMessageService;
     this._dataProvider = dataProvider;
     this._dbContext = dbContext;
     this._workContext = workContext;
     this._storeContext= storeContext;
     this._localizationSettings = localizationSettings;
     this._commonSettings = commonSettings;
     this._catalogSettings = catalogSettings;
     this._eventPublisher = eventPublisher;
     this._aclService = aclService;
     this._storeMappingService = storeMappingService;
     this._cityService = cityService;
 }
コード例 #59
0
 public HomeController(IPersonService personService, ICityService cityService, IPhoneService phoneService)
 {
     _personService = personService;
     _cityService = cityService;
     _phoneService = phoneService;
 }
コード例 #60
0
 public WeatherController(IWeatherService weatherService, ICityService cityService)
 {
     WeatherService = weatherService;
     CityService = cityService;
 }