public VariationController(CatalogEntryViewModelFactory viewModelFactory,
                            IReviewService reviewService,
                            IReviewActivityService reviewActivityService,
                            ICommerceTrackingService recommendationService,
                            ReferenceConverter referenceConverter,
                            IContentLoader contentLoader,
                            UrlResolver urlResolver,
                            ILoyaltyService loyaltyService) : base(referenceConverter, contentLoader, urlResolver, reviewService, reviewActivityService, recommendationService, loyaltyService)
 {
     _viewModelFactory = viewModelFactory;
 }
 public BundleController(IsInEditModeAccessor isInEditModeAccessor,
                         CatalogEntryViewModelFactory viewModelFactory,
                         IReviewService reviewService,
                         IReviewActivityService reviewActivityService,
                         ICommerceTrackingService recommendationService,
                         ReferenceConverter referenceConverter,
                         IContentLoader contentLoader,
                         UrlResolver urlResolver,
                         ILoyaltyService loyaltyService) : base(referenceConverter, contentLoader, urlResolver, reviewService, reviewActivityService, recommendationService, loyaltyService)
 {
     _isInEditMode     = isInEditModeAccessor();
     _viewModelFactory = viewModelFactory;
 }
 public CatalogContentControllerBase(ReferenceConverter referenceConverter,
                                     IContentLoader contentLoader,
                                     UrlResolver urlResolver,
                                     IReviewService reviewService,
                                     IReviewActivityService reviewActivityService,
                                     ICommerceTrackingService recommendationService,
                                     ILoyaltyService loyaltyService)
 {
     _referenceConverter    = referenceConverter;
     _contentLoader         = contentLoader;
     _urlResolver           = urlResolver;
     _reviewService         = reviewService;
     _reviewActivityService = reviewActivityService;
     _recommendationService = recommendationService;
     _loyaltyService        = loyaltyService;
 }
        public CatalogContentControllerBase(ReferenceConverter referenceConverter,
                                            IContentLoader contentLoader,
                                            UrlResolver urlResolver,
                                            IReviewService reviewService,
                                            IReviewActivityService reviewActivityService,
                                            ICommerceTrackingService recommendationService,
                                            ILoyaltyService loyaltyService)
        {
            var mode = HttpContext.RequestServices.GetRequiredService <IContextModeResolver>().CurrentMode;

            _isInEditMode          = mode == ContextMode.Edit || mode == ContextMode.Preview;
            _referenceConverter    = referenceConverter;
            _contentLoader         = contentLoader;
            _urlResolver           = urlResolver;
            _reviewService         = reviewService;
            _reviewActivityService = reviewActivityService;
            _recommendationService = recommendationService;
            _loyaltyService        = loyaltyService;
        }