コード例 #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;
 }
コード例 #3
0
 public ShoppingController(IRecommendedProductsService recommendationService,
                           ICurrentCustomerService currentCustomerService,
                           IContentLoader contentLoader,
                           ReferenceConverter referenceConverter)
 {
     _recommendationService  = recommendationService;
     _currentCustomerService = currentCustomerService;
     _contentLoader          = contentLoader;
     _referenceConverter     = referenceConverter;
 }
コード例 #4
0
 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;
 }