예제 #1
0
        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;
        }
예제 #2
0
 public CustomerReviewsModuleController(ICustomerReviewSearchService customerReviewSearchService, ICustomerReviewService customerReviewService, ICustomerReviewEvaluationService customerReviewEvaluationService, IProductRatingService productRatingService)
 {
     _customerReviewSearchService     = customerReviewSearchService;
     _customerReviewService           = customerReviewService;
     _customerReviewEvaluationService = customerReviewEvaluationService;
     _productRatiingService           = productRatingService;
 }
예제 #3
0
 public CustomerReviewsController(ICustomerReviewSearchService customerReviewSearchService, ICustomerReviewService customerReviewService, IProductRatingService productRatingService)
 {
     _customerReviewSearchService = customerReviewSearchService;
     _customerReviewService       = customerReviewService;
     _productRatingService        = productRatingService;
 }
예제 #4
0
 public CustomerReviewChangedEventHandler(IProductRatingService productRatingService)
 {
     _productRatingService = productRatingService;
 }
예제 #5
0
 public ProductRatingController(IProductRatingService ProductRatingService) :
     base(ProductRatingService)
 {
 }
예제 #6
0
 public ProductRatingController(IProductRatingService productRatingService)
 {
     _productRatingService = productRatingService;
 }
예제 #7
0
 public RecalculateProductsRatingsJob(ICustomerReviewService customerReviewService, IProductRatingCalc ratingCalculator, IProductRatingService productRatingService)
 {
     _customerReviewService = customerReviewService;
     _ratingCalculator      = ratingCalculator;
     _productRatingService  = productRatingService;
 }
예제 #8
0
 public CustomerReviewService(Func <ICustomerReviewRepository> repositoryFactory, IProductRatingService productRatingService)
 {
     _repositoryFactory    = repositoryFactory;
     _productRatingService = productRatingService;
 }