本文整理汇总了C#中IDiscountService类的典型用法代码示例。如果您正苦于以下问题:C# IDiscountService类的具体用法?C# IDiscountService怎么用?C# IDiscountService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IDiscountService类属于命名空间,在下文中一共展示了IDiscountService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetUp
public new void SetUp()
{
_store = new Store() { Id = 1 };
_storeContext = MockRepository.GenerateMock<IStoreContext>();
_storeContext.Expect(x => x.CurrentStore).Return(_store);
_discountService = MockRepository.GenerateMock<IDiscountService>();
_categoryService = MockRepository.GenerateMock<ICategoryService>();
_productAttributeParser = MockRepository.GenerateMock<IProductAttributeParser>();
_productService = MockRepository.GenerateMock<IProductService>();
_productAttributeService = MockRepository.GenerateMock<IProductAttributeService>();
_downloadService = MockRepository.GenerateMock<IDownloadService>();
_commonServices = MockRepository.GenerateMock<ICommonServices>();
_commonServices.Expect(x => x.StoreContext).Return(_storeContext);
_httpRequestBase = MockRepository.GenerateMock<HttpRequestBase>();
_taxService = MockRepository.GenerateMock<ITaxService>();
_shoppingCartSettings = new ShoppingCartSettings();
_catalogSettings = new CatalogSettings();
_priceCalcService = new PriceCalculationService(_discountService, _categoryService, _productAttributeParser, _productService, _shoppingCartSettings, _catalogSettings,
_productAttributeService, _downloadService, _commonServices, _httpRequestBase, _taxService);
}
示例2: CategoryController
public CategoryController(ICategoryService categoryService, ICategoryTemplateService categoryTemplateService,
IManufacturerService manufacturerService, IProductService productService,
IPictureService pictureService, ILanguageService languageService,
ILocalizationService localizationService, ILocalizedEntityService localizedEntityService,
IDiscountService discountService, IPermissionService permissionService,
IExportManager exportManager, IWorkContext workContext,
ICustomerActivityService customerActivityService, AdminAreaSettings adminAreaSettings,
CatalogSettings catalogSettings)
{
this._categoryService = categoryService;
this._categoryTemplateService = categoryTemplateService;
this._manufacturerService = manufacturerService;
this._productService = productService;
this._pictureService = pictureService;
this._languageService = languageService;
this._localizationService = localizationService;
this._localizedEntityService = localizedEntityService;
this._discountService = discountService;
this._permissionService = permissionService;
this._exportManager = exportManager;
this._workContext = workContext;
this._customerActivityService = customerActivityService;
this._adminAreaSettings = adminAreaSettings;
this._catalogSettings = catalogSettings;
}
示例3: DiscountRulesHasAllProductsController
public DiscountRulesHasAllProductsController(IDiscountService discountService,
ISettingService settingService, IPermissionService permissionService)
{
this._discountService = discountService;
this._settingService = settingService;
this._permissionService = permissionService;
}
示例4: PriceCalculationService
public PriceCalculationService(IWorkContext workContext,
IStoreContext storeContext,
IDiscountService discountService,
ICategoryService categoryService,
IProductAttributeParser productAttributeParser,
IProductService productService,
ICacheManager cacheManager,
ShoppingCartSettings shoppingCartSettings,
CatalogSettings catalogSettings,
IPriceForSizeService priceForSizeService)
: base(
workContext,
storeContext,
discountService,
categoryService,
productAttributeParser,
productService,
cacheManager,
shoppingCartSettings,
catalogSettings
)
{
_productAttributeParser = productAttributeParser;
_productService = productService;
_priceForSizeService = priceForSizeService;
}
示例5: DiscountRulesStoreController
public DiscountRulesStoreController(ILocalizationService localizationService,
IDiscountService discountService, IStoreService storeService)
{
this._localizationService = localizationService;
this._discountService = discountService;
this._storeService = storeService;
}
示例6: CrowdController
public CrowdController(ICrowdService crowdService,IPartImageService partImageService, IDiscountService discountService,IParticipationService participationService)
{
_discountService = discountService;
_crowdService = crowdService;
_partImageService = partImageService;
_participationService = participationService;
}
示例7: 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, IStoreService storeService, IStoreMappingService storeMappingService,
IExportManager exportManager, IVendorService vendorService,
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._vendorService = vendorService;
this._aclService = aclService;
this._storeService = storeService;
this._storeMappingService = storeMappingService;
this._exportManager = exportManager;
this._customerActivityService = customerActivityService;
this._adminAreaSettings = adminAreaSettings;
this._catalogSettings = catalogSettings;
}
示例8: OrderTotalCalculationService
/// <summary>
/// Ctor
/// </summary>
/// <param name="workContext">Work context</param>
/// <param name="storeContext">Store context</param>
/// <param name="priceCalculationService">Price calculation service</param>
/// <param name="taxService">Tax service</param>
/// <param name="shippingService">Shipping service</param>
/// <param name="paymentService">Payment service</param>
/// <param name="checkoutAttributeParser">Checkout attribute parser</param>
/// <param name="discountService">Discount service</param>
/// <param name="giftCardService">Gift card service</param>
/// <param name="genericAttributeService">Generic attribute service</param>
/// <param name="taxSettings">Tax settings</param>
/// <param name="rewardPointsSettings">Reward points settings</param>
/// <param name="shippingSettings">Shipping settings</param>
/// <param name="shoppingCartSettings">Shopping cart settings</param>
/// <param name="catalogSettings">Catalog settings</param>
public OrderTotalCalculationService(IWorkContext workContext,
IStoreContext storeContext,
IPriceCalculationService priceCalculationService,
ITaxService taxService,
IShippingService shippingService,
IPaymentService paymentService,
ICheckoutAttributeParser checkoutAttributeParser,
IDiscountService discountService,
IGiftCardService giftCardService,
IGenericAttributeService genericAttributeService,
TaxSettings taxSettings,
RewardPointsSettings rewardPointsSettings,
ShippingSettings shippingSettings,
ShoppingCartSettings shoppingCartSettings,
CatalogSettings catalogSettings)
{
this._workContext = workContext;
this._storeContext = storeContext;
this._priceCalculationService = priceCalculationService;
this._taxService = taxService;
this._shippingService = shippingService;
this._paymentService = paymentService;
this._checkoutAttributeParser = checkoutAttributeParser;
this._discountService = discountService;
this._giftCardService = giftCardService;
this._genericAttributeService = genericAttributeService;
this._taxSettings = taxSettings;
this._rewardPointsSettings = rewardPointsSettings;
this._shippingSettings = shippingSettings;
this._shoppingCartSettings = shoppingCartSettings;
this._catalogSettings = catalogSettings;
}
示例9: DiscountRulesShippingCountryController
public DiscountRulesShippingCountryController(ILocalizationService localizationService,
IDiscountService discountService, ICountryService countryService)
{
this._localizationService = localizationService;
this._discountService = discountService;
this._countryService = countryService;
}
示例10: DiscountController
public DiscountController(IDiscountService discountService,
ILocalizationService localizationService,
ICurrencyService currencyService,
ICategoryService categoryService,
IProductService productService,
IWebHelper webHelper,
IDateTimeHelper dateTimeHelper,
ICustomerActivityService customerActivityService,
CurrencySettings currencySettings,
IPermissionService permissionService,
IWorkContext workContext,
IManufacturerService manufacturerService,
IStoreService storeService,
IVendorService vendorService,
IOrderService orderService,
IPriceFormatter priceFormatter)
{
this._discountService = discountService;
this._localizationService = localizationService;
this._currencyService = currencyService;
this._categoryService = categoryService;
this._productService = productService;
this._webHelper = webHelper;
this._dateTimeHelper = dateTimeHelper;
this._customerActivityService = customerActivityService;
this._currencySettings = currencySettings;
this._permissionService = permissionService;
this._workContext = workContext;
this._manufacturerService = manufacturerService;
this._storeService = storeService;
this._vendorService = vendorService;
this._orderService = orderService;
this._priceFormatter = priceFormatter;
}
示例11: PriceCalculationService
public PriceCalculationService(
IDiscountService discountService,
ICategoryService categoryService,
IProductAttributeParser productAttributeParser,
IProductService productService,
ShoppingCartSettings shoppingCartSettings,
CatalogSettings catalogSettings,
IProductAttributeService productAttributeService,
IDownloadService downloadService,
ICommonServices services,
HttpRequestBase httpRequestBase,
ITaxService taxService)
{
this._discountService = discountService;
this._categoryService = categoryService;
this._productAttributeParser = productAttributeParser;
this._productService = productService;
this._shoppingCartSettings = shoppingCartSettings;
this._catalogSettings = catalogSettings;
this._productAttributeService = productAttributeService;
this._downloadService = downloadService;
this._services = services;
this._httpRequestBase = httpRequestBase;
this._taxService = taxService;
}
示例12: DiscountRulesCustomerRolesController
public DiscountRulesCustomerRolesController(IDiscountService discountService,
ICustomerService customerService, ILocalizationService localize)
{
this._discountService = discountService;
this._customerService = customerService;
this._localize = localize;
}
示例13: DiscountRulesCustomerRolesController
public DiscountRulesCustomerRolesController(IDiscountService discountService,
ICustomerService customerService, ISettingService settingService)
{
this._discountService = discountService;
this._customerService = customerService;
this._settingService = settingService;
}
示例14: SetUp
public new void SetUp()
{
_workContext = null;
_store = new Store() { Id = 1 };
_storeContext = MockRepository.GenerateMock<IStoreContext>();
_storeContext.Expect(x => x.CurrentStore).Return(_store);
_discountService = MockRepository.GenerateMock<IDiscountService>();
_categoryService = MockRepository.GenerateMock<ICategoryService>();
_productService = MockRepository.GenerateMock<IProductService>();
_productAttributeParser = MockRepository.GenerateMock<IProductAttributeParser>();
_shoppingCartSettings = new ShoppingCartSettings();
_catalogSettings = new CatalogSettings();
_cacheManager = new NopNullCache();
_priceCalcService = new PriceCalculationService(_workContext,
_storeContext,
_discountService,
_categoryService,
_productAttributeParser,
_productService,
_cacheManager,
_shoppingCartSettings,
_catalogSettings);
}
示例15: PromosPriceCalculationService
//private readonly IStoreContext _storeContext;
//private readonly IDiscountService _discountService;
//private readonly ICategoryService _categoryService;
//private readonly IProductAttributeParser _productAttributeParser;
//private readonly IProductService _productService;
//private readonly ICacheManager _cacheManager;
//private readonly ShoppingCartSettings _shoppingCartSettings;
//private readonly CatalogSettings _catalogSettings;
#endregion
#region constructor
public PromosPriceCalculationService(
IPromoUtilities promoUtilities,
IWorkContext workContext,
IStoreContext storeContext,
IDiscountService discountService,
ICategoryService categoryService,
IManufacturerService manufacturerService,
IProductAttributeParser productAttributeParser,
IProductService productService,
ICacheManager cacheManager,
ShoppingCartSettings shoppingCartSettings,
CatalogSettings catalogSettings,
PromoSettings promoSettings,
ICurrencyService currencyService,
IPriceCalculationService priceCalculationService,
ILocalizationService localizationService,
ILogger logger)
: base (workContext, storeContext, discountService,
categoryService, manufacturerService, productAttributeParser,
productService, cacheManager, shoppingCartSettings,
catalogSettings)
{
this._promoUtilities = promoUtilities;
this._promoSettings = promoSettings;
this._workContext = workContext;
this._currencyService = currencyService;
this._priceCalculationService = priceCalculationService;
this._localizationService = localizationService;
this._logger = logger;
}