示例#1
0
        public WishListViewService(
            IWishListRepository wishListRepository,
            ILineItemViewModelFactory lineItemViewModelFactory,
            IWishListUrlProvider wishListUrlProvider,
            IFixCartService fixCartService,
            IImageService imageService)
        {
            if (wishListRepository == null)
            {
                throw new ArgumentNullException("wishListRepository");
            }
            if (lineItemViewModelFactory == null)
            {
                throw new ArgumentNullException("lineItemViewModelFactory");
            }
            if (wishListUrlProvider == null)
            {
                throw new ArgumentNullException("wishListUrlProvider");
            }
            if (fixCartService == null)
            {
                throw new ArgumentNullException("fixCartService");
            }
            if (imageService == null)
            {
                throw new ArgumentNullException("imageService");
            }

            WishListRepository       = wishListRepository;
            LineItemViewModelFactory = lineItemViewModelFactory;
            WishListUrlProvider      = wishListUrlProvider;
            FixCartService           = fixCartService;
            ImageService             = imageService;
        }
示例#2
0
 public WishListController(IComposerContext composerContext,
                           ICustomerViewService customerViewService,
                           IBreadcrumbViewService breadcrumbViewService,
                           ILocalizationProvider localizationProvider,
                           IWishListUrlProvider wishListUrlProvider,
                           IWishListViewService wishListViewService,
                           IWebsiteContext websiteContext) :
     base(composerContext, customerViewService, breadcrumbViewService, localizationProvider, wishListUrlProvider, wishListViewService, websiteContext)
 {
 }
示例#3
0
 public WishListViewService(
     IWishListRepository wishListRepository,
     ILineItemViewModelFactory lineItemViewModelFactory,
     IWishListUrlProvider wishListUrlProvider,
     IFixCartService fixCartService,
     IImageService imageService)
 {
     WishListRepository       = wishListRepository ?? throw new ArgumentNullException(nameof(wishListRepository));
     LineItemViewModelFactory = lineItemViewModelFactory ?? throw new ArgumentNullException(nameof(lineItemViewModelFactory));
     WishListUrlProvider      = wishListUrlProvider ?? throw new ArgumentNullException(nameof(wishListUrlProvider));
     FixCartService           = fixCartService ?? throw new ArgumentNullException(nameof(fixCartService));
     ImageService             = imageService ?? throw new ArgumentNullException(nameof(imageService));
 }
示例#4
0
 protected WishListBaseController(
     IComposerContext composerContext,
     ICustomerViewService customerViewService,
     IBreadcrumbViewService breadcrumbViewService,
     ILocalizationProvider localizationProvider,
     IWishListUrlProvider wishListUrlProvider,
     IWishListViewService wishListViewService,
     IWebsiteContext websiteContext
     )
 {
     ComposerContext       = composerContext ?? throw new ArgumentNullException(nameof(composerContext));
     CustomerViewService   = customerViewService ?? throw new ArgumentNullException(nameof(customerViewService));
     BreadcrumbViewService = breadcrumbViewService ?? throw new ArgumentNullException(nameof(breadcrumbViewService));
     LocalizationProvider  = localizationProvider ?? throw new ArgumentNullException(nameof(localizationProvider));
     WishListUrlProvider   = wishListUrlProvider ?? throw new ArgumentNullException(nameof(wishListUrlProvider));
     WishLisViewService    = wishListViewService ?? throw new ArgumentNullException(nameof(wishListViewService));
 }
 public MyAccountViewService(
     IComposerContext composerContext,
     IMyAccountUrlProvider myAccountUrlProvider,
     IOrderUrlProvider orderUrlProvider,
     IWishListUrlProvider wishListUrlProvider,
     IRecurringScheduleUrlProvider recurringScheduleUrlProvider,
     IPageService pageService,
     IWebsiteContext websiteContext,
     IRecurringOrdersSettings recurringOrdersSettings,
     ISiteConfiguration siteConfiguration)
 {
     ComposerContext              = composerContext ?? throw new ArgumentNullException(nameof(composerContext));
     MyAccountUrlProvider         = myAccountUrlProvider ?? throw new ArgumentNullException(nameof(myAccountUrlProvider));
     OrderUrlProvider             = orderUrlProvider ?? throw new ArgumentNullException(nameof(orderUrlProvider));
     WishListUrlProvider          = wishListUrlProvider ?? throw new ArgumentNullException(nameof(wishListUrlProvider));
     PageService                  = pageService ?? throw new ArgumentNullException(nameof(pageService));
     RecurringScheduleUrlProvider = recurringScheduleUrlProvider ?? throw new ArgumentNullException(nameof(recurringScheduleUrlProvider));
     WebsiteContext               = websiteContext ?? throw new ArgumentNullException(nameof(websiteContext));
     RecurringOrdersSettings      = recurringOrdersSettings ?? throw new ArgumentNullException(nameof(recurringOrdersSettings));
     SiteConfiguration            = siteConfiguration ?? throw new ArgumentNullException(nameof(siteConfiguration));
 }