public ShoppingCartController(
     IShoppingCartPersistence shoppingCartPersistence,
     IShoppingCartHelpers shoppingCartHelpers,
     IProductService productService,
     IPriceService priceService,
     IPriceSelectionStrategy priceStrategy,
     IContentManager contentManager)
 {
     _shoppingCartPersistence = shoppingCartPersistence;
     _shoppingCartHelpers     = shoppingCartHelpers;
     _productService          = productService;
     _priceService            = priceService;
     _priceStrategy           = priceStrategy;
     _contentManager          = contentManager;
 }
 public ShoppingCartControllerTests()
 {
     _cartStorage = new FakeCartStorage();
     _controller  = new ShoppingCartController(
         shoppingCartPersistence: _cartStorage,
         shoppingCartHelpers: new ShoppingCartHelpers(
             attributeProviders: new[] { new ProductAttributeProvider() },
             productService: new FakeProductService(),
             moneyService: new TestMoneyService(),
             contentDefinitionManager: new FakeContentDefinitionManager()
             ),
         productService: new FakeProductService(),
         priceService: new FakePriceService(),
         priceStrategy: new LowestPriceStrategy(),
         contentManager: new FakeContentManager()
         );
 }
Ejemplo n.º 3
0
 public ShoppingCartController(
     IShoppingCartPersistence shoppingCartPersistence,
     IShoppingCartHelpers shoppingCartHelpers,
     IProductService productService,
     IPriceService priceService,
     IPriceSelectionStrategy priceStrategy,
     IContentManager contentManager,
     INotifier notifier,
     IHtmlLocalizer <ShoppingCartController> localizer)
 {
     _shoppingCartPersistence = shoppingCartPersistence;
     _shoppingCartHelpers     = shoppingCartHelpers;
     _productService          = productService;
     _priceService            = priceService;
     _priceStrategy           = priceStrategy;
     _contentManager          = contentManager;
     _notifier = notifier;
     H         = localizer;
 }