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; }
public WishListController(IComposerContext composerContext, ICustomerViewService customerViewService, IBreadcrumbViewService breadcrumbViewService, ILocalizationProvider localizationProvider, IWishListUrlProvider wishListUrlProvider, IWishListViewService wishListViewService, IWebsiteContext websiteContext) : base(composerContext, customerViewService, breadcrumbViewService, localizationProvider, wishListUrlProvider, wishListViewService, websiteContext) { }
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)); }
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)); }