예제 #1
0
 public ProductController(
     IReadOnlyDataService <Product, GetProductModel> dataService,
     IProductReviewService productReviewService)
     : base(dataService)
 {
     ProductReviewService = productReviewService ?? throw new ArgumentNullException(nameof(productReviewService));
 }
 public CountingController()
 {
     this.userService = new UserService();
     this.productReviewService = new ProductReviewService();
     this.productService = new ProductService();
     this.cartService = new CartService();
 }
 public CountingController(IUserService userService, IProductReviewService productReviewService, IProductService productService, ICartService cartService)
 {
     this.userService = userService;
     this.productReviewService = productReviewService;
     this.productService = productService;
     this.cartService = cartService;
 }
예제 #4
0
 public RangeType(IProductReviewService productReviewService)
 {
     Name = "Range";
     Field(b => b.From);
     Field(b => b.To);
     Field(b => b.Total);
 }
        public ProductReviewController(IProductReviewService productReviewService, IMapper mapper, IAuthenticationContext authenticationContext)
        {
            _productReviewService = productReviewService;
            _mapper = mapper;
            _authenticationContext = authenticationContext;

            _authenticationContext.AttachCurrentContext(this);
        }
 public SearchResponseType(IProductReviewService productReviewService)
 {
     Name = "SearchResponse";
     Field(b => b.Data, type: typeof(ListGraphType <ReviewType>)).Description("List of Reviews.");
     Field(b => b.Range, type: typeof(RangeType)).Description("Pagination values.");
     //Field<ListGraphType<ReviewType>>("data");
     //Field<RangeType>("range");
 }
예제 #7
0
        public AppSettingsType(IProductReviewService productReviewService)
        {
            Name = "AppSettings";

            Field(b => b.AllowAnonymousReviews).Description("Indicates whether anonymous reviews are allowed.");
            Field(b => b.RequireApproval).Description("Indicates whether reviews require approval.");
            Field(b => b.UseLocation).Description("Indicates whether to use Location field.");
            Field(b => b.defaultOpen).Description("Indicates whether reviews should expand by default");
        }
예제 #8
0
 public CustomerController(
     IDataService <Customer, GetCustomerModel, SendCustomerModel> dataService,
     IFavoriteProductService favoriteProductService,
     IProductReviewService productReviewService)
     : base(dataService)
 {
     FavoriteProductService = favoriteProductService ?? throw new ArgumentNullException(nameof(favoriteProductService));
     ProductReviewService   = productReviewService ?? throw new ArgumentNullException(nameof(productReviewService));
 }
 public TotalsType(IProductReviewService productReviewService)
 {
     Name = "Range";
     Field(b => b.Total5);
     Field(b => b.Total4);
     Field(b => b.Total3);
     Field(b => b.Total2);
     Field(b => b.Total1);
 }
 public GetProductReviewOverviewHandler(
     ICacheManager cacheManager,
     IProductReviewService productReviewService,
     CatalogSettings catalogSettings)
 {
     _cacheManager         = cacheManager;
     _productReviewService = productReviewService;
     _catalogSettings      = catalogSettings;
 }
예제 #11
0
 public ProductController(IProductCategoryService productCategoryService, IProductService productService, IProductSpecsService productSpecsService, IProductFeaturesService productFeaturesService, IBrochureService brochureService, IProductReviewService reviewService)
 {
     _productCategoryService = productCategoryService;
     _productService = productService;
     _productSpecsService = productSpecsService;
     _productFeaturesService = productFeaturesService;
     _brochureService = brochureService;
     _reviewService = reviewService;
 }
예제 #12
0
 public ProductController(IProductCategoryService productCategoryService, IProductService productService, IProductSpecsService productSpecsService, IProductFeaturesService productFeaturesService, IBrochureService brochureService, IProductReviewService reviewService)
 {
     _productCategoryService = productCategoryService;
     _productService         = productService;
     _productSpecsService    = productSpecsService;
     _productFeaturesService = productFeaturesService;
     _brochureService        = brochureService;
     _reviewService          = reviewService;
 }
예제 #13
0
 public ProductController(IProductService productService, ICategoryService categoryService,
                          ICQRSService cqrsService, IProductReviewService productReviewService,
                          ISearchService searchService)
 {
     this.productService       = productService;
     this.categoryService      = categoryService;
     this.cqrsService          = cqrsService;
     this.productReviewService = productReviewService;
     this.searchService        = searchService;
 }
예제 #14
0
 public GetReviewsHandler(
     ITranslationService translationService,
     IProductService productService,
     IProductReviewService productReviewService,
     IDateTimeService dateTimeService)
 {
     _translationService   = translationService;
     _productService       = productService;
     _productReviewService = productReviewService;
     _dateTimeService      = dateTimeService;
 }
예제 #15
0
 public GetReviewsHandler(
     ILocalizationService localizationService,
     IProductService productService,
     IProductReviewService productReviewService,
     IDateTimeHelper dateTimeHelper)
 {
     _localizationService  = localizationService;
     _productService       = productService;
     _productReviewService = productReviewService;
     _dateTimeHelper       = dateTimeHelper;
 }
예제 #16
0
 public ProductReviewController(
     IProductReviewViewModelService productReviewViewModelService,
     IProductReviewService productReviewService,
     ILocalizationService localizationService,
     IWorkContext workContext)
 {
     _productReviewViewModelService = productReviewViewModelService;
     _productReviewService          = productReviewService;
     _localizationService           = localizationService;
     _workContext = workContext;
 }
예제 #17
0
 public ProductsController(IProductService productService, IProductCategoryService productCategoryService,
                           IBrochureService brochureService, IWorkflowMessageService workflowMessageService,
                           IRequestQuoteService requestAQuoteService, IRepairApptService repairApptService, IProductReviewService productReviewService)
 {
     _productService         = productService;
     _productCategoryService = productCategoryService;
     _brochureService        = brochureService;
     _workflowMessageService = workflowMessageService;
     _requestAQuoteService   = requestAQuoteService;
     _repairApptService      = repairApptService;
     _productReviewService   = productReviewService;
 }
 public AbstractProductReviewController(
     ApiSettings settings,
     ILogger <AbstractProductReviewController> logger,
     ITransactionCoordinator transactionCoordinator,
     IProductReviewService productReviewService,
     IApiProductReviewModelMapper productReviewModelMapper
     )
     : base(settings, logger, transactionCoordinator)
 {
     this.ProductReviewService     = productReviewService;
     this.ProductReviewModelMapper = productReviewModelMapper;
 }
예제 #19
0
 public ProductsController(IProductService productService, IProductCategoryService productCategoryService,
     IBrochureService brochureService, IWorkflowMessageService workflowMessageService,
     IRequestQuoteService requestAQuoteService, IRepairApptService repairApptService, IProductReviewService productReviewService)
 {
     _productService = productService;
     _productCategoryService = productCategoryService;
     _brochureService = brochureService;
     _workflowMessageService = workflowMessageService;
     _requestAQuoteService = requestAQuoteService;
     _repairApptService = repairApptService;
     _productReviewService = productReviewService;
 }
 public ProductReviewController(
     IProductReviewViewModelService productReviewViewModelService,
     IProductReviewService productReviewService,
     ITranslationService translationService,
     IWorkContext workContext,
     IGroupService groupService)
 {
     _productReviewViewModelService = productReviewViewModelService;
     _productReviewService          = productReviewService;
     _translationService            = translationService;
     _workContext  = workContext;
     _groupService = groupService;
 }
예제 #21
0
 public UserDashboardController(IProductService ProductService, IMemberService MemberService, IInvoiceService InvoiceService, IProductReviewService ProductReviewService, ICouponService CouponService, IUserFavoriteService UserFavoriteService, IReportService ReportService, IAddressService AddressService, ICartService CartService, IOrderService OrderService)
 {
     _ProductService       = ProductService;
     _MemberService        = MemberService;
     _InvoiceService       = InvoiceService;
     _ProductReviewService = ProductReviewService;
     _CouponService        = CouponService;
     _UserFavoriteService  = UserFavoriteService;
     _ReportService        = ReportService;
     _AddressService       = AddressService;
     _CartService          = CartService;
     _OrderService         = OrderService;
 }
예제 #22
0
        public AppSettingsType(IProductReviewService productReviewService)
        {
            Name = "AppSettings";

            Field(b => b.AllowAnonymousReviews).Description("Indicates whether anonymous reviews are allowed.");
            Field(b => b.RequireApproval).Description("Indicates whether reviews require approval.");
            Field(b => b.UseLocation).Description("Indicates whether to use Location field.");
            Field(b => b.defaultOpen).Description("Indicates whether reviews should expand by default");
            Field(b => b.defaultOpenCount).Description("Indicates number of reviews to be expanded by default");
            Field(b => b.showGraph).Description("Show the reviews graph on product page");
            Field(b => b.displaySummaryIfNone).Description("Display stars in product-rating-summary if there are no reviews");
            Field(b => b.displaySummaryTotalReviews).Description("Display total reviews number on product-rating-summary block");
            Field(b => b.displaySummaryAddButton).Description("Display `Add review` button on product-rating-summary block");
        }
 public InsertProductReviewCommandHandler(
     IProductReviewService productReviewService,
     ICustomerService customerService,
     IMessageProviderService messageProviderService,
     IMediator mediator,
     CatalogSettings catalogSettings,
     LanguageSettings languageSettings)
 {
     _productReviewService   = productReviewService;
     _customerService        = customerService;
     _messageProviderService = messageProviderService;
     _mediator         = mediator;
     _catalogSettings  = catalogSettings;
     _languageSettings = languageSettings;
 }
예제 #24
0
 public GetProductReviewsHandler(
     ICustomerService customerService,
     IProductReviewService productReviewService,
     IDateTimeHelper dateTimeHelper,
     CatalogSettings catalogSettings,
     CustomerSettings customerSettings,
     CaptchaSettings captchaSettings)
 {
     _customerService      = customerService;
     _productReviewService = productReviewService;
     _dateTimeHelper       = dateTimeHelper;
     _catalogSettings      = catalogSettings;
     _customerSettings     = customerSettings;
     _captchaSettings      = captchaSettings;
 }
예제 #25
0
 public InsertProductReviewCommandHandler(
     IProductReviewService productReviewService,
     ICustomerService customerService,
     IWorkflowMessageService workflowMessageService,
     IMediator mediator,
     CatalogSettings catalogSettings,
     LocalizationSettings localizationSettings)
 {
     _productReviewService   = productReviewService;
     _customerService        = customerService;
     _workflowMessageService = workflowMessageService;
     _mediator             = mediator;
     _catalogSettings      = catalogSettings;
     _localizationSettings = localizationSettings;
 }
예제 #26
0
 public UserHomeController(IProductService ProductService, IMemberService MemberService, ILikeService LikeService, IDislikeService DislikeService, IProductReviewService ProductReviewService, ICartService CartService, ICouponService CouponService, IAddressService AddressService, IInvoiceService InvoiceService, ILoginService LoginService, IReportService ReportService, IUserFavoriteService UserFavoriteService, IOrderService OrderService)
 {
     _ProductService       = ProductService;
     _MemberService        = MemberService;
     _LikeService          = LikeService;
     _DislikeService       = DislikeService;
     _ProductReviewService = ProductReviewService;
     _CartService          = CartService;
     _CouponService        = CouponService;
     _AddressService       = AddressService;
     _InvoiceService       = InvoiceService;
     _LoginService         = LoginService;
     _ReportService        = ReportService;
     _UserFavoriteService  = UserFavoriteService;
     _OrderService         = OrderService;
 }
 public GetProductReviewsHandler(
     ICustomerService customerService,
     IProductReviewService productReviewService,
     IDateTimeService dateTimeService,
     IGroupService groupService,
     CatalogSettings catalogSettings,
     CustomerSettings customerSettings,
     CaptchaSettings captchaSettings)
 {
     _customerService      = customerService;
     _productReviewService = productReviewService;
     _dateTimeService      = dateTimeService;
     _groupService         = groupService;
     _catalogSettings      = catalogSettings;
     _customerSettings     = customerSettings;
     _captchaSettings      = captchaSettings;
 }
 public ProductReviewViewModelService(
     IProductService productService,
     IProductReviewService productReviewService,
     ICustomerService customerService,
     IStoreService storeService,
     IDateTimeService dateTimeService,
     ITranslationService translationService,
     IMediator mediator)
 {
     _productService       = productService;
     _productReviewService = productReviewService;
     _customerService      = customerService;
     _storeService         = storeService;
     _dateTimeService      = dateTimeService;
     _translationService   = translationService;
     _mediator             = mediator;
 }
예제 #29
0
 public ProductReviewViewModelService(
     IProductService productService,
     IProductReviewService productReviewService,
     ICustomerService customerService,
     IStoreService storeService,
     IDateTimeHelper dateTimeHelper,
     ILocalizationService localizationService,
     IMediator mediator)
 {
     _productService       = productService;
     _productReviewService = productReviewService;
     _customerService      = customerService;
     _storeService         = storeService;
     _dateTimeHelper       = dateTimeHelper;
     _localizationService  = localizationService;
     _mediator             = mediator;
 }
예제 #30
0
 public ProductReviewController(
     ApiSettings settings,
     ILogger <ProductReviewController> logger,
     ITransactionCoordinator transactionCoordinator,
     IProductReviewService productReviewService,
     IApiProductReviewModelMapper productReviewModelMapper
     )
     : base(settings,
            logger,
            transactionCoordinator,
            productReviewService,
            productReviewModelMapper)
 {
     this.BulkInsertLimit = 250;
     this.MaxLimit        = 1000;
     this.DefaultLimit    = 250;
 }
예제 #31
0
        public ReviewType(IProductReviewService productReviewService)
        {
            Name = "Review";

            Field(b => b.Id).Description("The id of the review.");
            Field(b => b.CacheId).Description("The cache id of the review.");
            Field(b => b.ProductId).Description("The product id of the review.");
            Field(b => b.Rating).Description("The rating of the review.");
            Field(b => b.Title, nullable: true).Description("The title of the review.");
            Field(b => b.Text, nullable: true).Description("The text of the review.");
            Field(b => b.ReviewerName, nullable: true).Description("The name of the reviewer.");
            Field(b => b.ShopperId, nullable: true).Description("The id of the reviewer.");
            Field(b => b.ReviewDateTime, nullable: true).Description("The date and time of the review.");
            Field(b => b.VerifiedPurchaser, nullable: true).Description("Indicates whether the reviewer is a verified purchaser.");
            Field(b => b.Sku, nullable: true).Description("The product sku of the review.");
            Field(b => b.Approved, nullable: true).Description("Indicates whether the review has been approved.");
            Field(b => b.Location, nullable: true).Description("Reviewer location.");
        }
 public CustomerController(ICustomerService customerService,
                           IProductService productService,
                           IProductReviewService productReviewService,
                           IProductReviewViewModelService productReviewViewModelService,
                           IProductViewModelService productViewModelService,
                           ICustomerViewModelService customerViewModelService,
                           IGenericAttributeService genericAttributeService,
                           ICustomerRegistrationService customerRegistrationService,
                           ILocalizationService localizationService,
                           CustomerSettings customerSettings,
                           IWorkContext workContext,
                           IStoreContext storeContext,
                           IExportManager exportManager,
                           ICustomerAttributeParser customerAttributeParser,
                           ICustomerAttributeService customerAttributeService,
                           IAddressAttributeParser addressAttributeParser,
                           IAddressAttributeService addressAttributeService,
                           IWorkflowMessageService workflowMessageService,
                           IDownloadService downloadService)
 {
     _customerService               = customerService;
     _productService                = productService;
     _productReviewService          = productReviewService;
     _productReviewViewModelService = productReviewViewModelService;
     _productViewModelService       = productViewModelService;
     _customerViewModelService      = customerViewModelService;
     _genericAttributeService       = genericAttributeService;
     _customerRegistrationService   = customerRegistrationService;
     _localizationService           = localizationService;
     _customerSettings              = customerSettings;
     _workContext              = workContext;
     _storeContext             = storeContext;
     _exportManager            = exportManager;
     _customerAttributeParser  = customerAttributeParser;
     _customerAttributeService = customerAttributeService;
     _addressAttributeParser   = addressAttributeParser;
     _addressAttributeService  = addressAttributeService;
     _workflowMessageService   = workflowMessageService;
     _downloadService          = downloadService;
 }
예제 #33
0
 public ProductController(IProductCategoryService productCategoryService,
                          IProductService productService,
                          IDynamicServiceAsync <ProductDynamic, Product> productUniversalService,
                          IInventoryCategoryService inventoryCategoryService,
                          IProductReviewService productReviewService,
                          ILoggerFactory loggerProvider,
                          ISettingService settingService,
                          IDynamicMapper <ProductDynamic, Product> mapper,
                          ICsvExportService <ProductCategoryStatisticTreeItemModel, ProductCategoryStatisticTreeItemCsvMap> productCategoryStatisticTreeItemCSVExportService,
                          ICsvExportService <SkuBreakDownReportItem, SkuBreakDownReportItemCsvMap> skuBreakDownReportItemCSVExportService,
                          ICsvExportService <SkuAverageDailySalesBySkuReportItem, SkuAverageDailySalesBySkuReportItemCsvMap>
                          skuAverageDailySalesBySkuReportItemCsvMapCSVExportService,
                          ICsvExportService <SkuAverageDailySalesByProductReportItem, SkuAverageDailySalesByProductReportItemCsvMap>
                          skuAverageDailySalesProductReportItemCsvMapCSVExportService,
                          IObjectHistoryLogService objectHistoryLogService,
                          ExtendedUserManager userManager,
                          IAgentService agentService,
                          IDynamicMapper <SkuDynamic, Sku> skuMapper,
                          AppSettings appSettings,
                          ICacheProvider cache)
 {
     this.productCategoryService   = productCategoryService;
     this.inventoryCategoryService = inventoryCategoryService;
     this.productService           = productService;
     this.productUniversalService  = productUniversalService;
     this.productReviewService     = productReviewService;
     this.settingService           = settingService;
     this.productCategoryStatisticTreeItemCSVExportService = productCategoryStatisticTreeItemCSVExportService;
     _skuBreakDownReportItemCSVExportService = skuBreakDownReportItemCSVExportService;
     this.objectHistoryLogService            = objectHistoryLogService;
     _userManager  = userManager;
     _agentService = agentService;
     _skuMapper    = skuMapper;
     _appSettings  = appSettings;
     _mapper       = mapper;
     _skuAverageDailySalesBySkuReportItemCsvMapCSVExportService   = skuAverageDailySalesBySkuReportItemCsvMapCSVExportService;
     _skuAverageDailySalesProductReportItemCsvMapCSVExportService = skuAverageDailySalesProductReportItemCsvMapCSVExportService;
     _cache      = cache;
     this.logger = loggerProvider.CreateLogger <ProductController>();
 }
예제 #34
0
 public ProductsController(
     IProductService productService,
     IFavouriteProductService favouriteService,
     IGroceryListItemService groceryListItemService,
     IGroceryListService groceryListService,
     IProductCategoryService categoryService,
     IProductDiscountService discountService,
     IProductReviewService reviewService,
     IProductSubcategoryService subcategoryService,
     ISupplierService supplierService
     )
 {
     _productService         = productService;
     _favouriteService       = favouriteService;
     _groceryListItemService = groceryListItemService;
     _groceryListService     = groceryListService;
     _categoryService        = categoryService;
     _discountService        = discountService;
     _reviewService          = reviewService;
     _subcategoryService     = subcategoryService;
     _supplierService        = supplierService;
 }
 public ReviewsController()
 {
     this.reviewService = new ProductReviewService();
 }
 public ProductsController(IProductService productService, IProductReviewService reviewService)
 {
     this.productService = productService;
     this.reviewService = reviewService;
 }
 public ProductsController()
 {
     this.productService = new ProductService();
     this.reviewService = new ProductReviewService();
 }
 public ReviewsController(IProductReviewService reviewService)
 {
     this.reviewService = reviewService;
 }