public CartValidator(Func <WorkContext> workContextFaxtory, IVirtoCommerceCartApi cartApi, ICatalogSearchService catalogService, ILocalCacheManager cacheManager)
 {
     _workContextFactory = workContextFaxtory;
     _cartApi            = cartApi;
     _catalogService     = catalogService;
     _cacheManager       = cacheManager;
 }
Exemple #2
0
 public CartBuilder(IVirtoCommerceCartApi cartApi, IPromotionEvaluator promotionEvaluator, ICatalogSearchService catalogSearchService, IVirtoCommerceCoreApi commerceApi, ILocalCacheManager cacheManager)
 {
     _cartApi              = cartApi;
     _promotionEvaluator   = promotionEvaluator;
     _catalogSearchService = catalogSearchService;
     _cacheManager         = cacheManager;
     _commerceApi          = commerceApi;
 }