Пример #1
0
 public CartService(
     IPricingService pricingService,
     IOrderGroupFactory orderGroupFactory,
     ICurrentCustomerService customerContext,
     IPlacedPriceProcessor placedPriceProcessor,
     IInventoryProcessor inventoryProcessor,
     ILineItemValidator lineItemValidator,
     IOrderRepository orderRepository,
     IPromotionEngine promotionEngine,
     ICurrentMarket currentMarket,
     IContentLoader contentLoader,
     ReferenceConverter referenceConverter
     )
 {
     _pricingService       = pricingService;
     _orderGroupFactory    = orderGroupFactory;
     _customerContext      = customerContext;
     _placedPriceProcessor = placedPriceProcessor;
     _inventoryProcessor   = inventoryProcessor;
     _lineItemValidator    = lineItemValidator;
     _promotionEngine      = promotionEngine;
     _orderRepository      = orderRepository;
     _currentMarket        = currentMarket;
     _contentLoader        = contentLoader;
     _referenceConverter   = referenceConverter;
 }
Пример #2
0
 public SchoolmanContext(DbContextOptions <SchoolmanContext> ops,
                         ICurrentCustomerService currentUserService) : base(ops)
 {
     this.currentUserService = currentUserService;
     Database.MigrateAsync().Wait();
     ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking;
 }
 public ShoppingController(IRecommendedProductsService recommendationService,
                           ICurrentCustomerService currentCustomerService,
                           IContentLoader contentLoader,
                           ReferenceConverter referenceConverter)
 {
     _recommendationService  = recommendationService;
     _currentCustomerService = currentCustomerService;
     _contentLoader          = contentLoader;
     _referenceConverter     = referenceConverter;
 }
 public CartController(IPostNordClient postNordClient,
                       IRecommendedProductsService recommendationService,
                       ICurrentCustomerService currentCustomerService,
                       ICurrentMarket currentMarket,
                       ProductService productService)
 {
     _postNordClient         = postNordClient;
     _recommendationService  = recommendationService;
     _currentCustomerService = currentCustomerService;
     _currentMarket          = currentMarket;
     _productService         = productService;
 }
Пример #5
0
 public RecommendedProductsBlockController(IRecommendedProductsService recommendationService,
                                           ICurrentCustomerService currentCustomerService,
                                           ICurrentMarket currentMarket,
                                           ProductService productService,
                                           IContentLoader contentLoader)
 {
     _recommendationService  = recommendationService;
     _currentCustomerService = currentCustomerService;
     _currentMarket          = currentMarket;
     _productService         = productService;
     _contentLoader          = contentLoader;
 }
Пример #6
0
 public SimilarProductsController(IRecommendedProductsService recommendationService,
                                  IContentLoader contentLoader,
                                  ICurrentCustomerService currentCustomerService,
                                  ICurrentMarket currentMarket,
                                  ReferenceConverter referenceConverter,
                                  ProductService productService)
 {
     _recommendationService  = recommendationService;
     _contentLoader          = contentLoader;
     _currentCustomerService = currentCustomerService;
     _currentMarket          = currentMarket;
     _referenceConverter     = referenceConverter;
     _productService         = productService;
 }