• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# IAddressService类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IAddressService的典型用法代码示例。如果您正苦于以下问题:C# IAddressService类的具体用法?C# IAddressService怎么用?C# IAddressService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IAddressService类属于命名空间,在下文中一共展示了IAddressService类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: TaxService

        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="addressService">Address service</param>
        /// <param name="workContext">Work context</param>
        /// <param name="taxSettings">Tax settings</param>
        /// <param name="pluginFinder">Plugin finder</param>
        /// <param name="geoLookupService">GEO lookup service</param>
        /// <param name="countryService">Country service</param>
        /// <param name="customerSettings">Customer settings</param>
        /// <param name="addressSettings">Address settings</param>
        public TaxService(IAddressService addressService,
            IWorkContext workContext,
            TaxSettings taxSettings,
            IPluginFinder pluginFinder,
            IGeoLookupService geoLookupService,
            ICountryService countryService,
            CustomerSettings customerSettings,
            AddressSettings addressSettings,
            PromoSettings promoSettings,
            //IpromoService promoService,
            IPromoUtilities promoUtilities,
            ITaxServiceExtensions taxServiceExtensions)
            : base(addressService, workContext, taxSettings,
                                                    pluginFinder, geoLookupService, countryService,
                                                    customerSettings, addressSettings)
        {
            this._addressService = addressService;
            this._workContext = workContext;
            this._taxSettings = taxSettings;
            this._pluginFinder = pluginFinder;
            this._geoLookupService = geoLookupService;
            this._countryService = countryService;
            this._customerSettings = customerSettings;
            this._addressSettings = addressSettings;

            this._promoSettings = promoSettings;
            //this._promoService = promoService;
            this._promoUtilities = promoUtilities;
            this._taxServiceExtensions = taxServiceExtensions;
        }
开发者ID:Qixol,项目名称:Qixol.Promo.Nop.Plugin,代码行数:41,代码来源:TaxService.cs


示例2: SetUp

        public new void SetUp()
        {
            _taxSettings = new TaxSettings();
            _taxSettings.DefaultTaxAddressId = 10;

            _workContext = null;

            _addressService = MockRepository.GenerateMock<IAddressService>();
            //default tax address
            _addressService.Expect(x => x.GetAddressById(_taxSettings.DefaultTaxAddressId)).Return(new Address { Id = _taxSettings.DefaultTaxAddressId });

            var pluginFinder = new PluginFinder();

            _eventPublisher = MockRepository.GenerateMock<IEventPublisher>();
            _eventPublisher.Expect(x => x.Publish(Arg<object>.Is.Anything));

            _geoLookupService = MockRepository.GenerateMock<IGeoLookupService>();
            _countryService = MockRepository.GenerateMock<ICountryService>();
            _logger = MockRepository.GenerateMock<ILogger>();
            _customerSettings = new CustomerSettings();
            _addressSettings = new AddressSettings();

            _taxService = new TaxService(_addressService, _workContext, _taxSettings,
                pluginFinder, _geoLookupService, _countryService, _logger
                , _customerSettings, _addressSettings);
        }
开发者ID:nvolpe,项目名称:raver,代码行数:26,代码来源:TaxServiceTests.cs


示例3: AddressController

        public AddressController(IUnitOfWork unitOfWork, IAddressService addressService,IApplicationUserManager userManager)
        {
            _unitOfWork = unitOfWork;
            _addressService = addressService;
            _userManager = userManager;

        }
开发者ID:rabbal,项目名称:Decision,代码行数:7,代码来源:AddressController.cs


示例4: CountryController

 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;
 }
开发者ID:LaOrigin,项目名称:Leorigin,代码行数:28,代码来源:CountryController.cs


示例5: SettingController

 public SettingController(ISettingService settingService,
     ICountryService countryService, IStateProvinceService stateProvinceService,
     IAddressService addressService, ITaxCategoryService taxCategoryService,
     ICurrencyService currencyService, IPictureService pictureService, 
     ILocalizationService localizationService, IDateTimeHelper dateTimeHelper,
     IOrderService orderService, IEncryptionService encryptionService,
     IThemeProvider themeProvider, ICustomerService customerService, 
     ICustomerActivityService customerActivityService, IPermissionService permissionService,
     IWebHelper webHelper, IFulltextService fulltextService, 
     IMaintenanceService maintenanceService, IStoreService storeService,
     IWorkContext workContext, IGenericAttributeService genericAttributeService)
 {
     this._settingService = settingService;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._addressService = addressService;
     this._taxCategoryService = taxCategoryService;
     this._currencyService = currencyService;
     this._pictureService = pictureService;
     this._localizationService = localizationService;
     this._dateTimeHelper = dateTimeHelper;
     this._orderService = orderService;
     this._encryptionService = encryptionService;
     this._themeProvider = themeProvider;
     this._customerService = customerService;
     this._customerActivityService = customerActivityService;
     this._permissionService = permissionService;
     this._webHelper = webHelper;
     this._fulltextService = fulltextService;
     this._maintenanceService = maintenanceService;
     this._storeService = storeService;
     this._workContext = workContext;
     this._genericAttributeService = genericAttributeService;
 }
开发者ID:haithemChkel,项目名称:nopCommerce_33,代码行数:34,代码来源:SettingController.cs


示例6: CustomerController

 public CustomerController(IAuthenticationService authenticationService,
     ILocalizationService localizationService,
      IWorkContext workContext,
      ICustomerService customerService,
      ICustomerRegistrationService customerRegistrationService,
     CustomerSettings customerSettings,
      IAddressService addressService,
      IWebHelper webHelper,
      LocalizationSettings localizationSettings, 
     CaptchaSettings captchaSettings,
     SecuritySettings securitySettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     ICustomerActivityService customerActivityService,
     DateTimeSettings dateTimeSettings,
     IDateTimeHelper dateTimeHelper,
     IGenericAttributeService genericAttributeService,
     IPermissionService permissionService)
 {
     this._authenticationService = authenticationService;
     this._localizationService = localizationService;
     this._workContext = workContext;
     this._customerRegistrationService = customerRegistrationService;
     this._customerService = customerService;
     this._customerSettings = customerSettings;
     this._addressService = addressService;
     this._webHelper = webHelper;
     this._localizationSettings = localizationSettings;
     this._captchaSettings = captchaSettings;
     this._securitySettings = securitySettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._customerActivityService = customerActivityService;
     this._dateTimeSettings = dateTimeSettings;
     this._dateTimeHelper = dateTimeHelper;
     this._genericAttributeService = genericAttributeService;
 }
开发者ID:muharremha,项目名称:MuhFrame,代码行数:35,代码来源:CustomerController.cs


示例7: TournamentAdminController

 public TournamentAdminController(ITournamentService tournamentService, ITennisClubService tennisClubService, IPlayerService playerService, IAddressService addressService)
 {
     _tournamentService = tournamentService;
     _tennisClubService = tennisClubService;
     _playerService = playerService;
     _addressService = addressService;
 }
开发者ID:AlexandrKiselev79,项目名称:LLT_Site,代码行数:7,代码来源:TournamentAdminController.cs


示例8: ShippingController

 public ShippingController(IShippingService shippingService, 
     ShippingSettings shippingSettings,
     ISettingService settingService,
     IAddressService addressService,
     ICountryService countryService,
     IStateProvinceService stateProvinceService,
     ILocalizationService localizationService, 
     IPermissionService permissionService,
      ILocalizedEntityService localizedEntityService,
     ILanguageService languageService,
     IPluginFinder pluginFinder,
     IWebHelper webHelper)
 {
     this._shippingService = shippingService;
     this._shippingSettings = shippingSettings;
     this._settingService = settingService;
     this._addressService = addressService;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._localizationService = localizationService;
     this._permissionService = permissionService;
     this._localizedEntityService = localizedEntityService;
     this._languageService = languageService;
     this._pluginFinder = pluginFinder;
     this._webHelper = webHelper;
 }
开发者ID:RickRosser,项目名称:SF011515,代码行数:26,代码来源:ShippingController.cs


示例9: SportCentersController

 public SportCentersController(
     ISportCategoryService sportCategories,
     IAddressService addressService,
     ISportCategoryService categoryService,
     ISportCenterService sportCenterService)
     : base(sportCategories, addressService, categoryService, sportCenterService)
 {
 }
开发者ID:antoanelenkov,项目名称:GoSportApp-MVC,代码行数:8,代码来源:SportCentersController.cs


示例10: UserController

 public UserController(
     ILocationService locationService,
     IContactService contactService,
     IAddressService addressService)
 {
     this.locationService = locationService;
     this.contactService = contactService;
     this.addressService = addressService;
 }
开发者ID:p0150n,项目名称:SupportMe,代码行数:9,代码来源:UserController.cs


示例11: UserController

 public UserController(
     ISportCategoryService sportCategories, 
     IAddressService addressService, 
     ISportCategoryService categoryService,
     IUserService userService)
     : base(sportCategories,addressService,categoryService)
 {
     this.userService = userService;
 }
开发者ID:antoanelenkov,项目名称:GoSportApp-MVC,代码行数:9,代码来源:UserController.cs


示例12: AdvancedController

 public AdvancedController(
     ISportCategoryService sportCategories,
     IAddressService addressService,
     ISportCategoryService categoryService,
     ISportCenterService sportCenterService)
     : base(sportCategories, addressService, categoryService)
 {
     this.sportCenterService = sportCenterService;
 }
开发者ID:antoanelenkov,项目名称:GoSportApp-MVC,代码行数:9,代码来源:AdvancedController.cs


示例13: TaxService

 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="addressService">Address service</param>
 /// <param name="workContext">Work context</param>
 /// <param name="taxSettings">Tax settings</param>
 /// <param name="pluginFinder">Plugin finder</param>
 public TaxService(IAddressService addressService,
     IWorkContext workContext,
     TaxSettings taxSettings,
     IPluginFinder pluginFinder)
 {
     _addressService = addressService;
     _workContext = workContext;
     _taxSettings = taxSettings;
     _pluginFinder = pluginFinder;
 }
开发者ID:haithemChkel,项目名称:nopCommerce_33,代码行数:17,代码来源:TaxService.cs


示例14: MemberController

 /// <summary>
 /// Initializes a new instance of the <see cref="MemberController"/> class.
 /// </summary>
 /// <param name="formsAuthentication">
 /// The forms authentication.
 /// </param>
 /// <param name="membershipService">
 /// The membership service.
 /// </param>
 /// <param name="addressService">
 /// The address service.
 /// </param>
 /// <param name="transactionService">
 /// The transaction Service.
 /// </param>
 public MemberController(
     IFormsAuthentication formsAuthentication,
     IMembershipService membershipService,
     IAddressService addressService,
     ITransactionService transactionService)
     : base(formsAuthentication)
 {
     this.membershipService = membershipService;
     this.addressService = addressService;
     this.transactionService = transactionService;
 }
开发者ID:Naviam,项目名称:Shop-Any-Ware,代码行数:26,代码来源:MemberController.cs


示例15: AddressService

 public AddressService(IAddressService Provider = null)
 {
     if (Provider != null)
     {
         this.Provider = Provider;
     }
     else
     {
         this.Provider = new WebServiceAddressProvider(new DefaultApiSettings());
     }
 }
开发者ID:TitanCoding,项目名称:esperanto,代码行数:11,代码来源:AddressService.cs


示例16: UsersController

 public UsersController(
     ISportCategoryService sportCategories,
     IAddressService addressService,
     ISportCategoryService categoryService,
     ISportCenterService sportCenterService,
     IUserService usersService,
     IMessageService messageService)
     : base(sportCategories, addressService, categoryService)
 {
     this.usersService=usersService;
     this.messageService = messageService;
 }
开发者ID:antoanelenkov,项目名称:GoSportApp-MVC,代码行数:12,代码来源:UsersController.cs


示例17: OrderController

        public OrderController(IOrderService orderService, 
            IOrderReportService orderReportService, IOrderProcessingService orderProcessingService,
            IDateTimeHelper dateTimeHelper, IPriceFormatter priceFormatter, ILocalizationService localizationService,
            IWorkContext workContext, ICurrencyService currencyService,
            IEncryptionService encryptionService, IPaymentService paymentService,
            IMeasureService measureService, IPdfService pdfService,
            IAddressService addressService, ICountryService countryService,
            IStateProvinceService stateProvinceService, IProductService productService,
            IExportManager exportManager, IPermissionService permissionService,
            IWorkflowMessageService workflowMessageService,
            ICategoryService categoryService, IManufacturerService manufacturerService,
            IProductAttributeService productAttributeService, IProductAttributeParser productAttributeParser,
            IProductAttributeFormatter productAttributeFormatter, IShoppingCartService shoppingCartService,
            IGiftCardService giftCardService, IDownloadService downloadService,
            IShipmentService shipmentService,
            CatalogSettings catalogSettings, CurrencySettings currencySettings, TaxSettings taxSettings,
            MeasureSettings measureSettings, PdfSettings pdfSettings)
        {
            this._orderService = orderService;
            this._orderReportService = orderReportService;
            this._orderProcessingService = orderProcessingService;
            this._dateTimeHelper = dateTimeHelper;
            this._priceFormatter = priceFormatter;
            this._localizationService = localizationService;
            this._workContext = workContext;
            this._currencyService = currencyService;
            this._encryptionService = encryptionService;
            this._paymentService = paymentService;
            this._measureService = measureService;
            this._pdfService = pdfService;
            this._addressService = addressService;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._productService = productService;
            this._exportManager = exportManager;
            this._permissionService = permissionService;
            this._workflowMessageService = workflowMessageService;
            this._categoryService = categoryService;
            this._manufacturerService = manufacturerService;
            this._productAttributeService = productAttributeService;
            this._productAttributeParser = productAttributeParser;
            this._productAttributeFormatter = productAttributeFormatter;
            this._shoppingCartService = shoppingCartService;
            this._giftCardService = giftCardService;
            this._downloadService = downloadService;
            this._shipmentService = shipmentService;

            this._catalogSettings = catalogSettings;
            this._currencySettings = currencySettings;
            this._taxSettings = taxSettings;
            this._measureSettings = measureSettings;
            this._pdfSettings = pdfSettings;
        }
开发者ID:CCSW,项目名称:desnivell,代码行数:53,代码来源:OrderController.cs


示例18: CountryController

 public CountryController(ICountryService countryService,
     IStateProvinceService stateProvinceService, ILocalizationService localizationService,
     IAddressService addressService, IPermissionService permissionService,
     ILocalizedEntityService localizedEntityService, ILanguageService languageService)
 {
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._localizationService = localizationService;
     this._addressService = addressService;
     this._permissionService = permissionService;
     this._localizedEntityService = localizedEntityService;
     this._languageService = languageService;
 }
开发者ID:richardspencer27,项目名称:RLBryan,代码行数:13,代码来源:CountryController.cs


示例19: GetInitialisedAddressController

        public static AddressController GetInitialisedAddressController(IAddressService addressService)
        {
            var controller = new AddressController(addressService)
            {
                Request = new HttpRequestMessage { RequestUri = new Uri(Url) },
                Configuration = new HttpConfiguration()
            };

            controller.Configuration.MapHttpAttributeRoutes();
            controller.Configuration.EnsureInitialized();

            return controller;
        }
开发者ID:letmeproperty,项目名称:Applications,代码行数:13,代码来源:ControllerHelper.cs


示例20: BuildAddress

        public virtual Address BuildAddress(string street, string number, string city, string state, IAddressService addressService)
        {
            /* Singleton - Possibilita que um mesmo builder(AddressBuilder)
               crie N products(Address) injetando a mesma instância de service(AddressService) */
            if (AddressService == null || !(AddressService.GetType() == addressService.GetType()))
                AddressService = addressService;

            address = new Address(AddressService);

            BuildAddressOptions();
            BuildProperties(street, number, city, state);

            return address;
        }
开发者ID:jhogoforbroke,项目名称:desafio-dev-senior,代码行数:14,代码来源:AddressAbstractBuilder.cs



注:本文中的IAddressService类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IAddressable类代码示例发布时间:2022-05-24
下一篇:
C# IAddressAttributeFormatter类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap