本文整理汇总了C#中ICustomerService类的典型用法代码示例。如果您正苦于以下问题:C# ICustomerService类的具体用法?C# ICustomerService怎么用?C# ICustomerService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ICustomerService类属于命名空间,在下文中一共展示了ICustomerService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ForumService
/// <summary>
/// Ctor
/// </summary>
/// <param name="cacheManager">Cache manager</param>
/// <param name="forumGroupRepository">Forum group repository</param>
/// <param name="forumRepository">Forum repository</param>
/// <param name="forumTopicRepository">Forum topic repository</param>
/// <param name="forumPostRepository">Forum post repository</param>
/// <param name="forumPrivateMessageRepository">Private message repository</param>
/// <param name="forumSubscriptionRepository">Forum subscription repository</param>
/// <param name="forumSettings">Forum settings</param>
/// <param name="customerRepository">Customer repository</param>
/// <param name="genericAttributeService">Generic attribute service</param>
/// <param name="customerService">Customer service</param>
/// <param name="workContext">Work context</param>
/// <param name="workflowMessageService">Workflow message service</param>
/// <param name="eventPublisher">Event published</param>
public ForumService(ICacheManager cacheManager,
IRepository<ForumGroup> forumGroupRepository,
IRepository<Forum> forumRepository,
IRepository<ForumTopic> forumTopicRepository,
IRepository<ForumPost> forumPostRepository,
IRepository<PrivateMessage> forumPrivateMessageRepository,
IRepository<ForumSubscription> forumSubscriptionRepository,
ForumSettings forumSettings,
IRepository<Customer> customerRepository,
IGenericAttributeService genericAttributeService,
ICustomerService customerService,
IWorkContext workContext,
IWorkflowMessageService workflowMessageService,
IEventPublisher eventPublisher
)
{
this._cacheManager = cacheManager;
this._forumGroupRepository = forumGroupRepository;
this._forumRepository = forumRepository;
this._forumTopicRepository = forumTopicRepository;
this._forumPostRepository = forumPostRepository;
this._forumPrivateMessageRepository = forumPrivateMessageRepository;
this._forumSubscriptionRepository = forumSubscriptionRepository;
this._forumSettings = forumSettings;
this._customerRepository = customerRepository;
this._genericAttributeService = genericAttributeService;
this._customerService = customerService;
this._workContext = workContext;
this._workflowMessageService = workflowMessageService;
_eventPublisher = eventPublisher;
}
示例2: PayPalExpressController
public PayPalExpressController(
IPaymentService paymentService, IOrderService orderService,
IOrderProcessingService orderProcessingService,
ILogger logger,
PaymentSettings paymentSettings, ILocalizationService localizationService,
OrderSettings orderSettings,
ICurrencyService currencyService, CurrencySettings currencySettings,
IOrderTotalCalculationService orderTotalCalculationService, ICustomerService customerService,
IGenericAttributeService genericAttributeService,
IComponentContext ctx, ICommonServices services,
IStoreService storeService)
{
_paymentService = paymentService;
_orderService = orderService;
_orderProcessingService = orderProcessingService;
_logger = logger;
_paymentSettings = paymentSettings;
_localizationService = localizationService;
_orderSettings = orderSettings;
_currencyService = currencyService;
_currencySettings = currencySettings;
_orderTotalCalculationService = orderTotalCalculationService;
_customerService = customerService;
_genericAttributeService = genericAttributeService;
_services = services;
_storeService = storeService;
_helper = new PluginHelper(ctx, "SmartStore.PayPal", "Plugins.Payments.PayPalExpress");
T = NullLocalizer.Instance;
}
示例3: ShoppingCartService
/// <summary>
/// Ctor
/// </summary>
/// <param name="sciRepository">Shopping cart repository</param>
/// <param name="workContext">Work context</param>
/// <param name="currencyService">Currency service</param>
/// <param name="productService">Product settings</param>
/// <param name="localizationService">Localization service</param>
/// <param name="productAttributeParser">Product attribute parser</param>
/// <param name="checkoutAttributeService">Checkout attribute service</param>
/// <param name="checkoutAttributeParser">Checkout attribute parser</param>
/// <param name="priceFormatter">Price formatter</param>
/// <param name="customerService">Customer service</param>
/// <param name="shoppingCartSettings">Shopping cart settings</param>
/// <param name="eventPublisher">Event publisher</param>
/// <param name="permissionService">Permission service</param>
/// <param name="aclService">ACL service</param>
public ShoppingCartService(IRepository<ShoppingCartItem> sciRepository,
IWorkContext workContext, ICurrencyService currencyService,
IProductService productService, ILocalizationService localizationService,
IProductAttributeParser productAttributeParser,
ICheckoutAttributeService checkoutAttributeService,
ICheckoutAttributeParser checkoutAttributeParser,
IPriceFormatter priceFormatter,
ICustomerService customerService,
ShoppingCartSettings shoppingCartSettings,
IEventPublisher eventPublisher,
IPermissionService permissionService,
IAclService aclService)
{
this._sciRepository = sciRepository;
this._workContext = workContext;
this._currencyService = currencyService;
this._productService = productService;
this._localizationService = localizationService;
this._productAttributeParser = productAttributeParser;
this._checkoutAttributeService = checkoutAttributeService;
this._checkoutAttributeParser = checkoutAttributeParser;
this._priceFormatter = priceFormatter;
this._customerService = customerService;
this._shoppingCartSettings = shoppingCartSettings;
this._eventPublisher = eventPublisher;
this._permissionService = permissionService;
this._aclService = aclService;
}
示例4: WebWorkContext
public WebWorkContext(Func<string, ICacheManager> cacheManager,
HttpContextBase httpContext,
ICustomerService customerService,
IStoreContext storeContext,
IAuthenticationService authenticationService,
ILanguageService languageService,
ICurrencyService currencyService,
IGenericAttributeService attrService,
TaxSettings taxSettings, CurrencySettings currencySettings,
LocalizationSettings localizationSettings, Lazy<ITaxService> taxService,
IStoreService storeService, ISettingService settingService,
IUserAgent userAgent)
{
this._cacheManager = cacheManager("static");
this._httpContext = httpContext;
this._customerService = customerService;
this._storeContext = storeContext;
this._authenticationService = authenticationService;
this._languageService = languageService;
this._attrService = attrService;
this._currencyService = currencyService;
this._taxSettings = taxSettings;
this._taxService = taxService;
this._currencySettings = currencySettings;
this._localizationSettings = localizationSettings;
this._storeService = storeService;
this._settingService = settingService;
this._userAgent = userAgent;
}
示例5: ReturnRequestController
public ReturnRequestController(IOrderService orderService,
IWorkContext workContext,
IStoreContext storeContext,
ICurrencyService currencyService,
IPriceFormatter priceFormatter,
IOrderProcessingService orderProcessingService,
ILocalizationService localizationService,
ICustomerService customerService,
IWorkflowMessageService workflowMessageService,
IDateTimeHelper dateTimeHelper,
LocalizationSettings localizationSettings,
OrderSettings orderSettings)
{
this._orderService = orderService;
this._workContext = workContext;
this._storeContext = storeContext;
this._currencyService = currencyService;
this._priceFormatter = priceFormatter;
this._orderProcessingService = orderProcessingService;
this._localizationService = localizationService;
this._customerService = customerService;
this._workflowMessageService = workflowMessageService;
this._dateTimeHelper = dateTimeHelper;
this._localizationSettings = localizationSettings;
this._orderSettings = orderSettings;
}
示例6: TopicController
public TopicController(ITopicService topicService,
ILanguageService languageService,
ILocalizedEntityService localizedEntityService,
ILocalizationService localizationService,
IPermissionService permissionService,
IStoreService storeService,
IStoreMappingService storeMappingService,
IUrlRecordService urlRecordService,
ITopicTemplateService topicTemplateService,
ICustomerService customerService,
ICustomerActivityService customerActivityService,
IAclService aclService)
{
this._topicService = topicService;
this._languageService = languageService;
this._localizedEntityService = localizedEntityService;
this._localizationService = localizationService;
this._permissionService = permissionService;
this._storeService = storeService;
this._storeMappingService = storeMappingService;
this._urlRecordService = urlRecordService;
this._topicTemplateService = topicTemplateService;
this._customerService = customerService;
this._customerActivityService = customerActivityService;
this._aclService = aclService;
}
示例7: CustomerMembershipService
public CustomerMembershipService(ICustomerProvider customerProvider
, ICustomerService customerService, IPasswordEncryptor passwordEncryptor)
{
this.CustomerProvider = customerProvider;
this.CustomerService = customerService;
this.PasswordEncryptor = passwordEncryptor;
}
示例8: CustomerAccountPaymentViewModel
public CustomerAccountPaymentViewModel(IEventAggregator eventAggregator, ICustomerService customerService)
{
EventAggregator = eventAggregator;
CustomerService = customerService;
DisplayName = "New Cash Payment";
}
示例9: SetUp
public new void SetUp()
{
_languageRepo = MockRepository.GenerateMock<IRepository<Language>>();
var lang1 = new Language
{
Name = "English",
LanguageCulture = "en-Us",
FlagImageFileName = "us.png",
Published = true,
DisplayOrder = 1
};
var lang2 = new Language
{
Name = "Russian",
LanguageCulture = "ru-Ru",
FlagImageFileName = "ru.png",
Published = true,
DisplayOrder = 2
};
_languageRepo.Expect(x => x.Table).Return(new List<Language>() { lang1, lang2 }.AsQueryable());
var cacheManager = new NopNullCache();
_customerService = MockRepository.GenerateMock<ICustomerService>();
_settingService = MockRepository.GenerateMock<ISettingService>();
_eventPublisher = MockRepository.GenerateMock<IEventPublisher>();
_eventPublisher.Expect(x => x.Publish(Arg<object>.Is.Anything));
_localizationSettings = new LocalizationSettings();
_languageService = new LanguageService(cacheManager, _languageRepo,
_customerService, _settingService, _localizationSettings, _eventPublisher);
}
示例10: CategoryController
public CategoryController(ICategoryService categoryService, ICategoryTemplateService categoryTemplateService,
IManufacturerService manufacturerService, IProductService productService,
ICustomerService customerService,
IUrlRecordService urlRecordService, IPictureService pictureService, ILanguageService languageService,
ILocalizationService localizationService, ILocalizedEntityService localizedEntityService,
IDiscountService discountService, IPermissionService permissionService,
IAclService aclService,
IExportManager exportManager, IWorkContext workContext,
ICustomerActivityService customerActivityService, AdminAreaSettings adminAreaSettings,
CatalogSettings catalogSettings)
{
this._categoryService = categoryService;
this._categoryTemplateService = categoryTemplateService;
this._manufacturerService = manufacturerService;
this._productService = productService;
this._customerService = customerService;
this._urlRecordService = urlRecordService;
this._pictureService = pictureService;
this._languageService = languageService;
this._localizationService = localizationService;
this._localizedEntityService = localizedEntityService;
this._discountService = discountService;
this._permissionService = permissionService;
this._aclService = aclService;
this._exportManager = exportManager;
this._workContext = workContext;
this._customerActivityService = customerActivityService;
this._adminAreaSettings = adminAreaSettings;
this._catalogSettings = catalogSettings;
}
示例11: OrderController
public OrderController(IOrderService orderService, IWorkContext workContext,
ICurrencyService currencyService, IPriceFormatter priceFormatter,
IOrderProcessingService orderProcessingService,
IDateTimeHelper dateTimeHelper, IMeasureService measureService,
IPaymentService paymentService, ILocalizationService localizationService,
IPdfService pdfService, ICustomerService customerService,
IWorkflowMessageService workflowMessageService,
LocalizationSettings localizationSettings,
MeasureSettings measureSettings, CatalogSettings catalogSettings,
OrderSettings orderSettings, TaxSettings taxSettings, PdfSettings pdfSettings)
{
this._orderService = orderService;
this._workContext = workContext;
this._currencyService = currencyService;
this._priceFormatter = priceFormatter;
this._orderProcessingService = orderProcessingService;
this._dateTimeHelper = dateTimeHelper;
this._measureService = measureService;
this._paymentService = paymentService;
this._localizationService = localizationService;
this._pdfService = pdfService;
this._customerService = customerService;
this._workflowMessageService = workflowMessageService;
this._localizationSettings = localizationSettings;
this._measureSettings = measureSettings;
this._catalogSettings = catalogSettings;
this._orderSettings = orderSettings;
this._taxSettings = taxSettings;
this._pdfSettings = pdfSettings;
}
示例12: BaseRepository
protected BaseRepository(IUnitOfWork unitOfWork, ICustomerService customerService, IProductService productService)
{
this.connectionString = ConfigurationManager.ConnectionStrings["InSite.Commerce"].ConnectionString;
this.unitOfWork = unitOfWork;
this.CustomerService = customerService;
this.ProductService = productService;
}
示例13: DiscountRulesCustomerRolesController
public DiscountRulesCustomerRolesController(IDiscountService discountService,
ICustomerService customerService, ISettingService settingService)
{
this._discountService = discountService;
this._customerService = customerService;
this._settingService = settingService;
}
示例14: CustomerRoleController
public CustomerRoleController(ICustomerService customerService,
ILocalizationService localizationService,
ICustomerActivityService customerActivityService,
IPermissionService permissionService,
IProductService productService,
ICategoryService categoryService,
IManufacturerService manufacturerService,
IStoreService storeService,
IVendorService vendorService,
IWorkContext workContext,
ILanguageService languageService,
ILocalizedEntityService localizedEntityService,
ICacheManager cacheManager)
{
this._customerService = customerService;
this._localizationService = localizationService;
this._customerActivityService = customerActivityService;
this._permissionService = permissionService;
this._productService = productService;
this._categoryService = categoryService;
this._manufacturerService = manufacturerService;
this._storeService = storeService;
this._vendorService = vendorService;
this._workContext = workContext;
this._languageService = languageService;
this._localizedEntityService = localizedEntityService;
this._cacheManager = cacheManager;
}
示例15: CategoryService
/// <summary>
/// Ctor
/// </summary>
/// <param name="cacheManager">Cache manager</param>
/// <param name="categoryRepository">Category repository</param>
/// <param name="productCategoryRepository">ProductCategory repository</param>
/// <param name="productRepository">Product repository</param>
/// <param name="aclRepository">ACL record repository</param>
/// <param name="storeMappingRepository">Store mapping repository</param>
/// <param name="workContext">Work context</param>
/// <param name="storeContext">Store context</param>
/// <param name="eventPublisher">Event publisher</param>
public CategoryService(ICacheManager cacheManager,
IRepository<Category> categoryRepository,
IRepository<ProductCategory> productCategoryRepository,
IRepository<Product> productRepository,
IRepository<AclRecord> aclRepository,
IRepository<StoreMapping> storeMappingRepository,
IWorkContext workContext,
IStoreContext storeContext,
IEventPublisher eventPublisher,
IStoreMappingService storeMappingService,
IAclService aclService,
Lazy<IEnumerable<ICategoryNavigationFilter>> navigationFilters,
ICustomerService customerService,
IProductService productService,
IStoreService storeService)
{
this._cacheManager = cacheManager;
this._categoryRepository = categoryRepository;
this._productCategoryRepository = productCategoryRepository;
this._productRepository = productRepository;
this._aclRepository = aclRepository;
this._storeMappingRepository = storeMappingRepository;
this._workContext = workContext;
this._storeContext = storeContext;
this._eventPublisher = eventPublisher;
this._storeMappingService = storeMappingService;
this._aclService = aclService;
this._navigationFilters = navigationFilters;
this._customerService = customerService;
this._productService = productService;
this._storeService = storeService;
this.QuerySettings = DbQuerySettings.Default;
}