private ICartBuilder GetCartBuilder()
 {
     var apiClientCfg = new Client.Client.Configuration(GetApiClient());
     var marketingApi = new MarketingModuleApi(apiClientCfg);
     var cartApi = new ShoppingCartModuleApi(apiClientCfg);
     var cacheManager = new Moq.Mock<ICacheManager<object>>();
     var workContextFactory = new Func<WorkContext>(GetTestWorkContext);
     var promotionEvaluator = new PromotionEvaluator(marketingApi);
     var catalogModuleApi = new CatalogModuleApi(apiClientCfg);
     var pricingApi = new PricingModuleApi(apiClientCfg);
     var pricingService = new PricingServiceImpl(workContextFactory, pricingApi);
     var inventoryApi = new InventoryModuleApi(apiClientCfg);
     var searchApi = new SearchModuleApi(apiClientCfg);
     var catalogSearchService = new CatalogSearchServiceImpl(workContextFactory, catalogModuleApi, pricingService, inventoryApi, searchApi, promotionEvaluator);
     var retVal = new CartBuilder(cartApi, promotionEvaluator, catalogSearchService, cacheManager.Object);
     return retVal;
 }
 public CatalogController(Configuration apiConfiguration)
 {
     _catalogClient = new CatalogModuleApi(apiConfiguration);
 }
 public ProductController(Configuration apiConfiguration)
 {
     _productClient = new CatalogModuleApi(apiConfiguration);
 }