public ProductDetailsPresenter(IProductDetailsView view, IProductService service, IViewModelFactory factory, IProductRatingService productRatingService, IAuthenticationProvider provider) : base(view) { if (service == null) { throw new ArgumentNullException("service cannot be null"); } if (productRatingService == null) { throw new ArgumentNullException("productRatingService cannot be null"); } if (factory == null) { throw new ArgumentNullException("factory cannot be null"); } if (provider == null) { throw new ArgumentNullException("provider cannot be null"); } this.service = service; this.productRatingService = productRatingService; this.factory = factory; this.provider = provider; this.View.MyProductDetails += View_MyProductDetails; this.View.RateProduct += View_RateProduct; }
public CustomerReviewsModuleController(ICustomerReviewSearchService customerReviewSearchService, ICustomerReviewService customerReviewService, ICustomerReviewEvaluationService customerReviewEvaluationService, IProductRatingService productRatingService) { _customerReviewSearchService = customerReviewSearchService; _customerReviewService = customerReviewService; _customerReviewEvaluationService = customerReviewEvaluationService; _productRatiingService = productRatingService; }
public CustomerReviewsController(ICustomerReviewSearchService customerReviewSearchService, ICustomerReviewService customerReviewService, IProductRatingService productRatingService) { _customerReviewSearchService = customerReviewSearchService; _customerReviewService = customerReviewService; _productRatingService = productRatingService; }
public CustomerReviewChangedEventHandler(IProductRatingService productRatingService) { _productRatingService = productRatingService; }
public ProductRatingController(IProductRatingService ProductRatingService) : base(ProductRatingService) { }
public ProductRatingController(IProductRatingService productRatingService) { _productRatingService = productRatingService; }
public RecalculateProductsRatingsJob(ICustomerReviewService customerReviewService, IProductRatingCalc ratingCalculator, IProductRatingService productRatingService) { _customerReviewService = customerReviewService; _ratingCalculator = ratingCalculator; _productRatingService = productRatingService; }
public CustomerReviewService(Func <ICustomerReviewRepository> repositoryFactory, IProductRatingService productRatingService) { _repositoryFactory = repositoryFactory; _productRatingService = productRatingService; }