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