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

C# IDiscountService类代码示例

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

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



IDiscountService类属于命名空间,在下文中一共展示了IDiscountService类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
        }
开发者ID:boatengfrankenstein,项目名称:SmartStoreNET,代码行数:26,代码来源:PriceCalculationServiceTests.cs


示例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;
 }
开发者ID:cole2295,项目名称:nopCommerce-Linux-Mysql,代码行数:25,代码来源:CategoryController.cs


示例3: DiscountRulesHasAllProductsController

 public DiscountRulesHasAllProductsController(IDiscountService discountService,
     ISettingService settingService, IPermissionService permissionService)
 {
     this._discountService = discountService;
     this._settingService = settingService;
     this._permissionService = permissionService;
 }
开发者ID:nguyentu1982,项目名称:quancu,代码行数:7,代码来源:DiscountRulesHasAllProductsController.cs


示例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;
 }
开发者ID:mutharasank,项目名称:Nop.Plugin.Widgets.PriceForSize,代码行数:26,代码来源:PriceCalculationService.cs


示例5: DiscountRulesStoreController

 public DiscountRulesStoreController(ILocalizationService localizationService,
      IDiscountService discountService, IStoreService storeService)
  {
      this._localizationService = localizationService;
      this._discountService = discountService;
      this._storeService = storeService;
  }
开发者ID:GloriousOnion,项目名称:SmartStoreNET,代码行数:7,代码来源:DiscountRulesStoreController.cs


示例6: CrowdController

 public CrowdController(ICrowdService crowdService,IPartImageService partImageService, IDiscountService discountService,IParticipationService  participationService)
 {
     _discountService = discountService;
     _crowdService = crowdService;
     _partImageService = partImageService;
     _participationService = participationService;
 }
开发者ID:glustful,项目名称:.NetProject,代码行数:7,代码来源:CrowdController.cs


示例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;
 }
开发者ID:Niitn,项目名称:nopCommerce,代码行数:32,代码来源:CategoryController.cs


示例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;
 }
开发者ID:haithemChkel,项目名称:nopCommerce_33,代码行数:50,代码来源:OrderTotalCalculationService.cs


示例9: DiscountRulesShippingCountryController

 public DiscountRulesShippingCountryController(ILocalizationService localizationService,
     IDiscountService discountService, ICountryService countryService)
 {
     this._localizationService = localizationService;
     this._discountService = discountService;
     this._countryService = countryService;
 }
开发者ID:btolbert,项目名称:test-commerce,代码行数:7,代码来源:DiscountRulesShippingCountryController.cs


示例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;
 }
开发者ID:RickRosser,项目名称:SF011515,代码行数:34,代码来源:DiscountController.cs


示例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;
        }
开发者ID:mandocaesar,项目名称:Mesinku,代码行数:25,代码来源:PriceCalculationService.cs


示例12: DiscountRulesCustomerRolesController

 public DiscountRulesCustomerRolesController(IDiscountService discountService,
     ICustomerService customerService, ILocalizationService localize)
 {
     this._discountService = discountService;
     this._customerService = customerService;
     this._localize = localize;
 }
开发者ID:GloriousOnion,项目名称:SmartStoreNET,代码行数:7,代码来源:DiscountRulesCustomerRolesController.cs


示例13: DiscountRulesCustomerRolesController

 public DiscountRulesCustomerRolesController(IDiscountService discountService,
     ICustomerService customerService, ISettingService settingService)
 {
     this._discountService = discountService;
     this._customerService = customerService;
     this._settingService = settingService;
 }
开发者ID:kramerica-industries,项目名称:eCommerce,代码行数:7,代码来源:DiscountRulesCustomerRolesController.cs


示例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);
        }
开发者ID:minuzZ,项目名称:zelectroshop,代码行数:30,代码来源:PriceCalculationServiceTests.cs


示例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;
        }
开发者ID:Qixol,项目名称:Qixol.Promo.Nop.Plugin,代码行数:43,代码来源:PromotionsPriceCalculationService.cs


示例16: DiscountRulesFirstTimeUserController

 public DiscountRulesFirstTimeUserController(IDiscountService discountService,
     ISettingService settingService, 
     IPermissionService permissionService)
 {
     this._discountService = discountService;
     this._settingService = settingService;
     this._permissionService = permissionService;
 }
开发者ID:RickRosser,项目名称:SF011515,代码行数:8,代码来源:DiscountRulesFirstTimeUserController.cs


示例17: DiscountRulesHadSpentAmountController

 public DiscountRulesHadSpentAmountController(IDiscountService discountService,
     ISettingService settingService, 
     IPermissionService permissionService)
 {
     this._discountService = discountService;
     this._settingService = settingService;
     this._permissionService = permissionService;
 }
开发者ID:vic0626,项目名称:nas-merk,代码行数:8,代码来源:DiscountRulesHadSpentAmountController.cs


示例18: DiscountRulesBillingCountryController

 public DiscountRulesBillingCountryController(ILocalizationService localizationService, 
     IDiscountService discountService, ICountryService countryService,
     ISettingService settingService)
 {
     this._localizationService = localizationService;
     this._discountService = discountService;
     this._countryService = countryService;
     this._settingService = settingService;
 }
开发者ID:emilianionascu,项目名称:NopCommerce,代码行数:9,代码来源:DiscountRulesBillingCountryController.cs


示例19: CrowdApiController

 public CrowdApiController(ICrowdService crowdService, IPartImageService partImageService, IDiscountService discountService, IFollowerService followerService, IPhoneService phoneService, IParticipationService participationService)
 {
     _discountService = discountService;
     _crowdService = crowdService;
     _partImageService = partImageService;
     _followerService = followerService;
     _phoneService = phoneService;
     _participationService = participationService;
 }
开发者ID:glustful,项目名称:.NetProject,代码行数:9,代码来源:CrowdApiController.cs


示例20: ProductController

 //private readonly ICartService _cartService;
 public ProductController(ICategoryService categoryService, IProductServices productServices, 
     IMerchantService merchantService, IDiscountService discountService)
 {
     _categoryService = categoryService;
     _productServices = productServices;
     _merchantService = merchantService;
     _discountService = discountService;
     //_cartService = cartService;
 }
开发者ID:bob1457,项目名称:CommunityMarket,代码行数:10,代码来源:ProductController.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# IDiskProvider类代码示例发布时间:2022-05-24
下一篇:
C# IDirectoryService类代码示例发布时间: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