public CustomerReviewsModuleController(
     ICustomerReviewSearchService customerReviewSearchService,
     ICustomerReviewService customerReviewService)
 {
     _customerReviewSearchService = customerReviewSearchService;
     _customerReviewService       = customerReviewService;
 }
Example #2
0
 public CustomerReviewsExportPagedDataSourceFactory(ICustomerReviewSearchService searchService, ICustomerReviewService customerReviewService, IItemService itemService, IBlobUrlResolver blobUrlResolver)
 {
     _searchService         = searchService;
     _customerReviewService = customerReviewService;
     _itemService           = itemService;
     _blobUrlResolver       = blobUrlResolver;
 }
Example #3
0
 public CustomerReviewsModuleController(ICustomerReviewSearchService customerReviewSearchService, ICustomerReviewService customerReviewService, ICustomerReviewEvaluationService customerReviewEvaluationService, IProductRatingService productRatingService)
 {
     _customerReviewSearchService     = customerReviewSearchService;
     _customerReviewService           = customerReviewService;
     _customerReviewEvaluationService = customerReviewEvaluationService;
     _productRatiingService           = productRatingService;
 }
Example #4
0
 public CustomerReviewsController(ICustomerReviewSearchService customerReviewSearchService,
                                  ICustomerReviewService customerReviewService,
                                  IAverageProductRateSearchService averageProductRateSearchService)
 {
     _customerReviewSearchService     = customerReviewSearchService;
     _customerReviewService           = customerReviewService;
     _averageProductRateSearchService = averageProductRateSearchService;
 }
Example #5
0
 public CustomerReviewsSearchServiceTests()
 {
     _repositoryFactory           = new Mock <ICustomerReviewRepository>();
     _customerReviewService       = new Mock <ICustomerReviewService>();
     _customerReviewSearchService = new CustomerReviewSearchService(
         () => _repositoryFactory.Object,
         _customerReviewService.Object);
 }
 public CustomerReviewsController(
     ICustomerReviewSearchService customerReviewSearchService,
     ICustomerReviewService customerReviewService,
     IFavoritePropertyService favoritePropertyService)
 {
     _customerReviewSearchService = customerReviewSearchService;
     _customerReviewService       = customerReviewService;
     _favoritePropertyService     = favoritePropertyService;
 }
 public CustomerReviewExportPagedDataSource(
     ICustomerReviewSearchService searchService,
     ICustomerReviewService customerReviewService,
     IItemService itemService,
     IBlobUrlResolver blobUrlResolver,
     CustomerReviewExportDataQuery dataQuery) : base(dataQuery)
 {
     _searchService         = searchService;
     _customerReviewService = customerReviewService;
     _itemService           = itemService;
     _blobUrlResolver       = blobUrlResolver;
     _dataQuery             = dataQuery;
 }
Example #8
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);
        }
Example #9
0
 private IProductRaitingCalculator CreateCalculator(ICustomerReviewSearchService searchService)
 {
     return(new ProductRaitingCalculator(searchService));
 }
Example #10
0
 public CustomerReviewsController(ICustomerReviewSearchService customerReviewSearchService, ICustomerReviewService customerReviewService, IProductRatingService productRatingService)
 {
     _customerReviewSearchService = customerReviewSearchService;
     _customerReviewService       = customerReviewService;
     _productRatingService        = productRatingService;
 }
Example #11
0
 public ProductRaitingCalculator(ICustomerReviewSearchService reviewSearchService)
 {
     this.reviewSearchService = reviewSearchService;
 }