public CustomerReviewSearchService(
     Func <ICustomerReviewRepository> repositoryFactory,
     ICustomerReviewService customerReviewService)
 {
     _repositoryFactory     = repositoryFactory;
     _customerReviewService = customerReviewService;
 }
コード例 #2
0
 public CustomerReviewsModuleController(ICustomerReviewSearchService customerReviewSearchService, ICustomerReviewService customerReviewService, ICustomerReviewEvaluationService customerReviewEvaluationService, IProductRatingService productRatingService)
 {
     _customerReviewSearchService     = customerReviewSearchService;
     _customerReviewService           = customerReviewService;
     _customerReviewEvaluationService = customerReviewEvaluationService;
     _productRatiingService           = productRatingService;
 }
コード例 #3
0
 public CustomerReviewsExportPagedDataSourceFactory(ICustomerReviewSearchService searchService, ICustomerReviewService customerReviewService, IItemService itemService, IBlobUrlResolver blobUrlResolver)
 {
     _searchService         = searchService;
     _customerReviewService = customerReviewService;
     _itemService           = itemService;
     _blobUrlResolver       = blobUrlResolver;
 }
 public CustomerReviewsModuleController(
     ICustomerReviewSearchService customerReviewSearchService,
     ICustomerReviewService customerReviewService)
 {
     _customerReviewSearchService = customerReviewSearchService;
     _customerReviewService       = customerReviewService;
 }
コード例 #5
0
 public ApiCustomerReviewsController(
     IWorkContextAccessor workContextAccessor,
     IStorefrontUrlBuilder urlBuilder,
     ICustomerReviewService customerReviewService)
     : base(workContextAccessor, urlBuilder)
 {
     _customerReviewService = customerReviewService;
 }
コード例 #6
0
 public CustomerReviewsController(ICustomerReviewSearchService customerReviewSearchService,
                                  ICustomerReviewService customerReviewService,
                                  IAverageProductRateSearchService averageProductRateSearchService)
 {
     _customerReviewSearchService     = customerReviewSearchService;
     _customerReviewService           = customerReviewService;
     _averageProductRateSearchService = averageProductRateSearchService;
 }
 public CustomerReviewsController(
     ICustomerReviewSearchService customerReviewSearchService,
     ICustomerReviewService customerReviewService,
     IFavoritePropertyService favoritePropertyService)
 {
     _customerReviewSearchService = customerReviewSearchService;
     _customerReviewService       = customerReviewService;
     _favoritePropertyService     = favoritePropertyService;
 }
コード例 #8
0
 public ApiCatalogController(
     IWorkContextAccessor workContextAccessor,
     IStorefrontUrlBuilder urlBuilder,
     ICatalogService catalogSearchService,
     ICustomerReviewService customerReviewService)
     : base(workContextAccessor, urlBuilder)
 {
     _catalogService        = catalogSearchService;
     _customerReviewService = customerReviewService;
 }
コード例 #9
0
 public CustomerReviewExportPagedDataSource(
     ICustomerReviewSearchService searchService,
     ICustomerReviewService customerReviewService,
     IItemService itemService,
     IBlobUrlResolver blobUrlResolver,
     CustomerReviewExportDataQuery dataQuery) : base(dataQuery)
 {
     _searchService         = searchService;
     _customerReviewService = customerReviewService;
     _itemService           = itemService;
     _blobUrlResolver       = blobUrlResolver;
     _dataQuery             = dataQuery;
 }
コード例 #10
0
 public CatalogService(IWorkContextAccessor workContextAccessor, ICatalogModuleCategories categoriesApi,
                       ICatalogModuleProducts productsApi,
                       ICatalogModuleSearch searchApi, IPricingService pricingService, IMemberService customerService,
                       ISubscriptionService subscriptionService, IInventoryService inventoryService,
                       IStorefrontMemoryCache memoryCache, IApiChangesWatcher changesWatcher, ICustomerReviewService customerReviewService)
 {
     _workContextAccessor   = workContextAccessor;
     _categoriesApi         = categoriesApi;
     _productsApi           = productsApi;
     _searchApi             = searchApi;
     _categoriesApi         = categoriesApi;
     _pricingService        = pricingService;
     _inventoryService      = inventoryService;
     _customerService       = customerService;
     _subscriptionService   = subscriptionService;
     _memoryCache           = memoryCache;
     _apiChangesWatcher     = changesWatcher;
     _customerReviewService = customerReviewService;
 }
コード例 #11
0
        private void Init()
        {
            _customerReviewRepoMock      = new Mock <Func <ICustomerReviewRepository> >();
            _ratingServiceMock           = new Mock <IRatingService>();
            _customerReviewService       = new CustomerReviewService(_customerReviewRepoMock.Object, _ratingServiceMock.Object);
            _customerReviewSearchService = new CustomerReviewSearchService(_customerReviewRepoMock.Object, _customerReviewService);

            var customers = new List <CustomerReviewEntity>
            {
                new CustomerReviewEntity
                {
                    Id        = _testCustomerId,
                    ProductId = _testProductId,
                    IsActive  = true
                }
            }.AsQueryable();

            _customerReviewRepoMock.Setup(c => c().CustomerReviews).Returns(customers);
            _customerReviewRepoMock.Setup(c => c().UnitOfWork.Commit()).Returns(1);
        }
コード例 #12
0
 public CustomerReviewSearchService(Func <ICustomerReviewRepository> repositoryFactory, IPlatformMemoryCache platformMemoryCache, ICustomerReviewService customerReviewService)
 {
     _repositoryFactory     = repositoryFactory;
     _platformMemoryCache   = platformMemoryCache;
     _customerReviewService = customerReviewService;
 }
 public CustomerReviewsServiceTests()
 {
     _repositoryFactory     = new Mock <ICustomerReviewRepository>(MockBehavior.Loose);
     _customerReviewService = new CustomerReviewService(() => _repositoryFactory.Object);
 }
コード例 #14
0
 public RecalculateProductsRatingsJob(ICustomerReviewService customerReviewService, IProductRatingCalc ratingCalculator, IProductRatingService productRatingService)
 {
     _customerReviewService = customerReviewService;
     _ratingCalculator      = ratingCalculator;
     _productRatingService  = productRatingService;
 }
 public CustomerReviewSearchService(Func <ICustomerReviewRepository> repositoryFactory, IPlatformMemoryCache platformMemoryCache, ICustomerReviewService customerReviewService)
     : base(repositoryFactory, platformMemoryCache, (ICrudService <CustomerReview>)customerReviewService)
 {
 }
コード例 #16
0
 public CustomerReviewsController(ICustomerReviewService customerReviewService)
 {
     _customerReviewService = customerReviewService;
 }
コード例 #17
0
 public CustomerReviewsController(ICustomerReviewSearchService customerReviewSearchService, ICustomerReviewService customerReviewService, IProductRatingService productRatingService)
 {
     _customerReviewSearchService = customerReviewSearchService;
     _customerReviewService       = customerReviewService;
     _productRatingService        = productRatingService;
 }