public ProductsController(IProductRepository productRepo, IUserPreferenceService userPrefService, ILocalizedMessageService messageService)
 {
     this._productRepository     = productRepo;
     this._userPreferenceService = userPrefService;
     this._messageService        = messageService;
     this._searchService         = new ProductSearchService(_productRepository);
 }
        public SearchControllerTests()
        {
            this.productSearchService = Substitute.For <IProductSearchService>();
            this.searchMapper         = Substitute.For <ISearchMapper>();

            this.controller = Substitute.For <SearchController>(this.productSearchService, this.searchMapper);
        }
Exemple #3
0
 public CatalogModuleSearchController(ISecurityService securityService, IPermissionScopeService permissionScopeService, ICatalogSearchService searchService, IBlobUrlResolver blobUrlResolver, IProductSearchService productSearchService, ICategorySearchService categorySearchService)
     : base(securityService, permissionScopeService)
 {
     _searchService         = searchService;
     _blobUrlResolver       = blobUrlResolver;
     _productSearchService  = productSearchService;
     _categorySearchService = categorySearchService;
 }
Exemple #4
0
        public SearchController(IProductSearchService productSearchService, ISearchMapper searchMapper)
        {
            Assert.ArgumentNotNull(productSearchService, nameof(productSearchService));
            Assert.ArgumentNotNull(searchMapper, nameof(searchMapper));

            this.productSearchService = productSearchService;
            this.searchMapper         = searchMapper;
        }
 public ProductListController(IMemoryCache memoryCache, IProductTopicService productTopicService,
                              IProductSearchService productSearchService,
                              IProductClassifyService productClassifyService)
 {
     this.memoryCache            = memoryCache;
     this.productClassifyService = productClassifyService;
     this.productSearchService   = productSearchService;
     this.productTopicService    = productTopicService;
 }
Exemple #6
0
 public ProductsController(
     IProductSearchService productSearchService,
     ILookupService lookupService,
     IProductService productService)
 {
     _productSearchService = productSearchService;
     _lookupService        = lookupService;
     _productService       = productService;
 }
 public AddCartItemsBulkCommandHandler(
     ICartAggregateRepository cartAggrRepository,
     IProductSearchService productSearchService,
     IMediator mediator)
 {
     _cartAggrRepository   = cartAggrRepository;
     _productSearchService = productSearchService;
     _mediator             = mediator;
 }
 public CsvPagedPriceDataSourceFactory(
     IBlobStorageProvider blobStorageProvider,
     IProductSearchService productSearchService,
     ImportConfigurationFactory importConfigurationFactory,
     Func <TextReader, CsvConfiguration, IReader> csvReaderFactory)
 {
     _blobStorageProvider        = blobStorageProvider;
     _productSearchService       = productSearchService;
     _importConfigurationFactory = importConfigurationFactory;
     _csvReaderFactory           = csvReaderFactory;
 }
Exemple #9
0
 public CatalogSearchServiceDecorator(
     CatalogSearchServiceImpl catalogSearchService,
     IItemService itemService,
     IProductSearchService productSearchService,
     ISettingsManager settingsManager)
 {
     _catalogSearchService = catalogSearchService;
     _itemService          = itemService;
     _productSearchService = productSearchService;
     _settingsManager      = settingsManager;
 }
Exemple #10
0
 public CsvCatalogExporter(IProductSearchService productSearchService,
                           IItemService productService,
                           IPricingService pricingService,
                           IInventorySearchService inventorySearchService,
                           IBlobUrlResolver blobUrlResolver
                           )
 {
     _productSearchService   = productSearchService;
     _productService         = productService;
     _pricingService         = pricingService;
     _inventorySearchService = inventorySearchService;
     _blobUrlResolver        = blobUrlResolver;
 }
Exemple #11
0
        public ProductSearchServiceTests()
        {
            this.searchManager          = Substitute.For <ISearchService>();
            this.searchMapper           = Substitute.For <ISearchMapper>();
            this.searchOptionsBuilder   = Substitute.For <ISearchOptionsBuilder>();
            this.searchSettingsProvider = Substitute.For <ISearchSettingsProvider>();

            this.service = new ProductSearchService(
                this.searchSettingsProvider,
                this.searchOptionsBuilder,
                this.searchManager,
                this.searchMapper);
            this.fixture = new Fixture();
        }
Exemple #12
0
 public ContentfulController(Func <string, IContentBlobStorageProvider> contentStorageProviderFactory,
                             IBlobUrlResolver urlResolver, ISecurityService securityService,
                             IPermissionScopeService permissionScopeService, IStoreService storeService,
                             IItemService itemService, ICatalogService catalogService, ICatalogSearchService searchService, IProductSearchService productSearchService)
 {
     _itemService  = itemService;
     _storeService = storeService;
     _contentStorageProviderFactory = contentStorageProviderFactory;
     _urlResolver            = urlResolver;
     _securityService        = securityService;
     _permissionScopeService = permissionScopeService;
     _catalogService         = catalogService;
     _searchService          = searchService;
     _productSearchService   = productSearchService;
 }
Exemple #13
0
 public CatalogExportImport(ICatalogService catalogService, IProductSearchService productSearchService, ICategorySearchService categorySearchService, ICategoryService categoryService,
                            IItemService itemService, IPropertyService propertyService, IPropertySearchService propertySearchService, IProperyDictionaryItemSearchService propertyDictionarySearchService, IProperyDictionaryItemService propertyDictionaryService, IOptions <MvcJsonOptions> jsonOptions
                            , IBlobStorageProvider blobStorageProvider)
 {
     _catalogService                  = catalogService;
     _productSearchService            = productSearchService;
     _categorySearchService           = categorySearchService;
     _categoryService                 = categoryService;
     _itemService                     = itemService;
     _propertyService                 = propertyService;
     _propertySearchService           = propertySearchService;
     _propertyDictionarySearchService = propertyDictionarySearchService;
     _propertyDictionaryService       = propertyDictionaryService;
     _jsonSerializer                  = JsonSerializer.Create(jsonOptions.Value.SerializerSettings);
     _blobStorageProvider             = blobStorageProvider;
 }
Exemple #14
0
 public CatalogExportPagedDataSourceFactory(
     IPropertySearchService propertySearchService
     , IPropertyDictionaryItemSearchService propertyDictionaryItemSearchService
     , IBlobStorageProvider blobStorageProvider
     , IProductSearchService productSearchService
     , IItemService itemService
     , ICategorySearchService categorySearchService
     , ICatalogSearchService catalogSearchService)
 {
     _propertySearchService = propertySearchService;
     _propertyDictionaryItemSearchService = propertyDictionaryItemSearchService;
     _blobStorageProvider   = blobStorageProvider;
     _productSearchService  = productSearchService;
     _itemService           = itemService;
     _categorySearchService = categorySearchService;
     _catalogSearchService  = catalogSearchService;
 }
Exemple #15
0
 public CatalogExportImport(ICatalogService catalogService, IProductSearchService productSearchService, ICategorySearchService categorySearchService, ICategoryService categoryService,
                            IItemService itemService, IPropertyService propertyService, IPropertySearchService propertySearchService, IProperyDictionaryItemSearchService propertyDictionarySearchService,
                            IProperyDictionaryItemService propertyDictionaryService, JsonSerializer jsonSerializer, IBlobStorageProvider blobStorageProvider, IAssociationService associationService)
 {
     _catalogService                  = catalogService;
     _productSearchService            = productSearchService;
     _categorySearchService           = categorySearchService;
     _categoryService                 = categoryService;
     _itemService                     = itemService;
     _propertyService                 = propertyService;
     _propertySearchService           = propertySearchService;
     _propertyDictionarySearchService = propertyDictionarySearchService;
     _propertyDictionaryService       = propertyDictionaryService;
     _jsonSerializer                  = jsonSerializer;
     _blobStorageProvider             = blobStorageProvider;
     _associationService              = associationService;
 }
 public ProductAPIService
 (
     IContentDefinitionService contentDefinitionService,
     IProductService productService,
     IProductSearchService productSearchService,
     IProductUpdateService productUpdateService,
     IUserProvider userProvider,
     Func <string, IAction> getAction,
     IProductRelevanceService relevanceService
 )
 {
     _contentDefinitionService = contentDefinitionService;
     _productService           = productService;
     _productSearchService     = productSearchService;
     _productUpdateService     = productUpdateService;
     _userProvider             = userProvider;
     _getAction        = getAction;
     _relevanceService = relevanceService;
 }
        public CsvPagedPriceDataSource(
            string filePath,
            IProductSearchService productSearchService,
            IBlobStorageProvider blobStorageProvider,
            int pageSize,
            CsvConfiguration configuration,
            Func <TextReader, CsvConfiguration, IReader> csvReaderFactory)
        {
            _productSearchService = productSearchService;

            var stream = blobStorageProvider.OpenRead(filePath);

            _stream       = stream;
            _streamReader = new StreamReader(stream);

            _configuration = configuration;
            _csvReader     = csvReaderFactory(_streamReader, _configuration);

            PageSize = pageSize;
        }
 public ProductController(IProductSearchService productSearchService)
 {
     _productSearchService = productSearchService;
 }
Exemple #19
0
 public ProductExportPagedDataSource(IBlobStorageProvider blobStorageProvider, IItemService itemService, IProductSearchService productSearchService, ProductExportDataQuery dataQuery) : base(dataQuery)
 {
     _blobStorageProvider  = blobStorageProvider;
     _itemService          = itemService;
     _productSearchService = productSearchService;
 }
 public ProductsListModel(IProductSearchService productSearchService)
 {
     _productSearchService = productSearchService;
 }
 public OffersController(CodeTestContext context, IProductSearchService offerData)
 {
     _context   = context;
     _offerData = offerData;
 }
 public PDFReportController(IProductRepository productRepository)
 {
     this._productRepository = productRepository;
     this._searchService     = new ProductSearchService(productRepository);
 }
Exemple #23
0
 public ProductDocumentBuilder(ISettingsManager settingsManager, IItemService itemService, IProductSearchService productsSearchService)
     : base(settingsManager)
 {
     _itemService           = itemService;
     _productsSearchService = productsSearchService;
 }
 public ProductSearchController(IProductSearchService productSearchService, IMemoryCache memoryCache)
 {
     this.productSearchService = productSearchService;
     this.memoryCache = memoryCache;
 }
 public CardSearchModel(IProductSearchService customerService)
 {
     _customerService = customerService;
 }