public CartModuleController(IShoppingCartService shoppingCartService, IShoppingCartSearchService searchService, IShoppingCartBuilder cartBuilder, IShopingCartTotalsCalculator cartTotalsCalculator)
 {
     _shoppingCartService  = shoppingCartService;
     _searchService        = searchService;
     _cartBuilder          = cartBuilder;
     _cartTotalsCalculator = cartTotalsCalculator;
 }
 public ShoppingCartServiceImpl(Func <ICartRepository> repositoryFactory, IDynamicPropertyService dynamicPropertyService,
                                IShopingCartTotalsCalculator totalsCalculator, IEventPublisher eventPublisher)
 {
     RepositoryFactory      = repositoryFactory;
     EventPublisher         = eventPublisher;
     DynamicPropertyService = dynamicPropertyService;
     TotalsCalculator       = totalsCalculator;
 }
 public ShoppingCartServiceImpl(Func <ICartRepository> repositoryFactory, IEventPublisher <CartChangeEvent> changingEventPublisher, IDynamicPropertyService dynamicPropertyService,
                                IShopingCartTotalsCalculator totalsCalculator, IEventPublisher <CartChangedEvent> changedEventPublisher)
 {
     _repositoryFactory      = repositoryFactory;
     _changingEventPublisher = changingEventPublisher;
     _dynamicPropertyService = dynamicPropertyService;
     _changedEventPublisher  = changedEventPublisher;
     _totalsCalculator       = totalsCalculator;
 }
Example #4
0
 public ShoppingCartServiceImpl(Func <ICartRepository> repositoryFactory, IDynamicPropertyService dynamicPropertyService,
                                IShopingCartTotalsCalculator totalsCalculator, IEventPublisher eventPublisher
                                , IPlatformMemoryCache platformMemoryCache)
 {
     _repositoryFactory      = repositoryFactory;
     _eventPublisher         = eventPublisher;
     _dynamicPropertyService = dynamicPropertyService;
     _totalsCalculator       = totalsCalculator;
     _platformMemoryCache    = platformMemoryCache;
 }
Example #5
0
 public CartModuleController(
     IShoppingCartService shoppingCartService
     , IShoppingCartSearchService searchService
     , IShoppingCartBuilder cartBuilder
     , IShopingCartTotalsCalculator cartTotalsCalculator,
     Func <ICartRepository> repositoryFactory)
 {
     _shoppingCartService  = shoppingCartService;
     _searchService        = searchService;
     _cartBuilder          = cartBuilder;
     _cartTotalsCalculator = cartTotalsCalculator;
     _repositoryFactory    = repositoryFactory;
 }