public CustomerReviewsModuleController( ICustomerReviewSearchService customerReviewSearchService, ICustomerReviewService customerReviewService) { _customerReviewSearchService = customerReviewSearchService; _customerReviewService = customerReviewService; }
public CustomerReviewsExportPagedDataSourceFactory(ICustomerReviewSearchService searchService, ICustomerReviewService customerReviewService, IItemService itemService, IBlobUrlResolver blobUrlResolver) { _searchService = searchService; _customerReviewService = customerReviewService; _itemService = itemService; _blobUrlResolver = blobUrlResolver; }
public CustomerReviewsModuleController(ICustomerReviewSearchService customerReviewSearchService, ICustomerReviewService customerReviewService, ICustomerReviewEvaluationService customerReviewEvaluationService, IProductRatingService productRatingService) { _customerReviewSearchService = customerReviewSearchService; _customerReviewService = customerReviewService; _customerReviewEvaluationService = customerReviewEvaluationService; _productRatiingService = productRatingService; }
public CustomerReviewsController(ICustomerReviewSearchService customerReviewSearchService, ICustomerReviewService customerReviewService, IAverageProductRateSearchService averageProductRateSearchService) { _customerReviewSearchService = customerReviewSearchService; _customerReviewService = customerReviewService; _averageProductRateSearchService = averageProductRateSearchService; }
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; }
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); }
private IProductRaitingCalculator CreateCalculator(ICustomerReviewSearchService searchService) { return(new ProductRaitingCalculator(searchService)); }
public CustomerReviewsController(ICustomerReviewSearchService customerReviewSearchService, ICustomerReviewService customerReviewService, IProductRatingService productRatingService) { _customerReviewSearchService = customerReviewSearchService; _customerReviewService = customerReviewService; _productRatingService = productRatingService; }
public ProductRaitingCalculator(ICustomerReviewSearchService reviewSearchService) { this.reviewSearchService = reviewSearchService; }