Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PriceListClient" /> class.
 /// </summary>
 /// <param name="priceListRepository">The price list repository.</param>
 /// <param name="customerSession">The customer session.</param>
 /// <param name="priceListEvaluator">The price list evaluator.</param>
 /// <param name="priceListEvalContext">The price list eval context.</param>
 /// <param name="cacheRepository">The cache repository.</param>
 public PriceListClient(IPricelistRepository priceListRepository, ICustomerSessionService customerSession, IPriceListAssignmentEvaluator priceListEvaluator, IPriceListAssignmentEvaluationContext priceListEvalContext, ICacheRepository cacheRepository)
 {
     _cacheRepository      = cacheRepository;
     _priceListRepository  = priceListRepository;
     _customerSession      = customerSession;
     _priceListEvalContext = priceListEvalContext;
     _priceListEvaluator   = priceListEvaluator;
     _isEnabled            = CatalogConfiguration.Instance.Cache.IsEnabled;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PriceListClient" /> class.
 /// </summary>
 /// <param name="priceListRepository">The price list repository.</param>
 /// <param name="customerSession">The customer session.</param>
 /// <param name="priceListEvaluator">The price list evaluator.</param>
 /// <param name="priceListEvalContext">The price list eval context.</param>
 /// <param name="cacheRepository">The cache repository.</param>
 public PriceListClient(IPricelistRepository priceListRepository, ICustomerSessionService customerSession, IPriceListAssignmentEvaluator priceListEvaluator, IPriceListAssignmentEvaluationContext priceListEvalContext, ICacheRepository cacheRepository)
 {
     _cacheRepository = cacheRepository;
     _priceListRepository = priceListRepository;
     _customerSession = customerSession;
     _priceListEvalContext = priceListEvalContext;
     _priceListEvaluator = priceListEvaluator;
     _isEnabled = CatalogConfiguration.Instance.Cache.IsEnabled;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ValidateLineItemsActivity"/> class.
 /// </summary>
 /// <param name="inventoryRepository">The inventory repository.</param>
 /// <param name="catalogRepository">The catalog repository.</param>
 /// <param name="storeRepository">The store repository.</param>
 /// <param name="customerService">The customer service.</param>
 /// <param name="priceListRepository">The price list repository.</param>
 /// <param name="currencyService">The currency service.</param>
 /// <param name="priceListEvaluator">The price list evaluator.</param>
 /// <param name="priceListEvalContext">The price list eval context.</param>
 /// <param name="cacheRepository">The cache repository.</param>
 public ValidateLineItemsActivity(IInventoryRepository inventoryRepository,
                                  ICatalogRepository catalogRepository,
                                  IStoreRepository storeRepository,
                                  ICustomerSessionService customerService,
                                  IPricelistRepository priceListRepository,
                                  ICurrencyService currencyService,
                                  IPriceListAssignmentEvaluator priceListEvaluator,
                                  IPriceListAssignmentEvaluationContext priceListEvalContext,
                                  ICacheRepository cacheRepository)
 {
     _inventoryRepository    = inventoryRepository;
     _catalogRepository      = catalogRepository;
     _storeRepository        = storeRepository;
     _customerSessionService = customerService;
     _pricelistRepository    = priceListRepository;
     _currencyService        = currencyService;
     _priceListEvalContext   = priceListEvalContext;
     _cacheRepository        = cacheRepository;
     _priceListEvaluator     = priceListEvaluator;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="ValidateLineItemsActivity"/> class.
        /// </summary>
        /// <param name="inventoryRepository">The inventory repository.</param>
        /// <param name="catalogRepository">The catalog repository.</param>
        /// <param name="storeRepository">The store repository.</param>
        /// <param name="customerService">The customer service.</param>
        /// <param name="priceListRepository">The price list repository.</param>
        /// <param name="currencyService">The currency service.</param>
        /// <param name="priceListEvaluator">The price list evaluator.</param>
        /// <param name="priceListEvalContext">The price list eval context.</param>
        /// <param name="cacheRepository">The cache repository.</param>
        public ValidateLineItemsActivity(IInventoryRepository inventoryRepository, 
			ICatalogRepository catalogRepository, 
            IStoreRepository storeRepository, 
			ICustomerSessionService customerService, 
			IPricelistRepository priceListRepository,
            ICurrencyService currencyService, 
			IPriceListAssignmentEvaluator priceListEvaluator, 
			IPriceListAssignmentEvaluationContext priceListEvalContext,
			ICacheRepository cacheRepository)
        {
            _inventoryRepository = inventoryRepository;
            _catalogRepository = catalogRepository;
            _storeRepository = storeRepository;
            _customerSessionService = customerService;
            _pricelistRepository = priceListRepository;
            _currencyService = currencyService;
            _priceListEvalContext = priceListEvalContext;
	        _cacheRepository = cacheRepository;
	        _priceListEvaluator = priceListEvaluator;
        }