当前位置: 首页>>代码示例>>C#>>正文


C# IAddressService类代码示例

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


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


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