本文整理汇总了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;
}
示例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);
}
示例3: AddressController
public AddressController(IUnitOfWork unitOfWork, IAddressService addressService,IApplicationUserManager userManager)
{
_unitOfWork = unitOfWork;
_addressService = addressService;
_userManager = userManager;
}
示例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;
}
示例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;
}
示例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;
}
示例7: TournamentAdminController
public TournamentAdminController(ITournamentService tournamentService, ITennisClubService tennisClubService, IPlayerService playerService, IAddressService addressService)
{
_tournamentService = tournamentService;
_tennisClubService = tennisClubService;
_playerService = playerService;
_addressService = addressService;
}
示例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;
}
示例9: SportCentersController
public SportCentersController(
ISportCategoryService sportCategories,
IAddressService addressService,
ISportCategoryService categoryService,
ISportCenterService sportCenterService)
: base(sportCategories, addressService, categoryService, sportCenterService)
{
}
示例10: UserController
public UserController(
ILocationService locationService,
IContactService contactService,
IAddressService addressService)
{
this.locationService = locationService;
this.contactService = contactService;
this.addressService = addressService;
}
示例11: UserController
public UserController(
ISportCategoryService sportCategories,
IAddressService addressService,
ISportCategoryService categoryService,
IUserService userService)
: base(sportCategories,addressService,categoryService)
{
this.userService = userService;
}
示例12: AdvancedController
public AdvancedController(
ISportCategoryService sportCategories,
IAddressService addressService,
ISportCategoryService categoryService,
ISportCenterService sportCenterService)
: base(sportCategories, addressService, categoryService)
{
this.sportCenterService = sportCenterService;
}
示例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;
}
示例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;
}
示例15: AddressService
public AddressService(IAddressService Provider = null)
{
if (Provider != null)
{
this.Provider = Provider;
}
else
{
this.Provider = new WebServiceAddressProvider(new DefaultApiSettings());
}
}