public PaymentController(IComposerContext composerContext, IPaymentViewService paymentViewService, IImageViewService imageService, IRecurringScheduleUrlProvider recurringScheduleUrlProvider, IRecurringCartUrlProvider recurringCartUrlProvider) { if (composerContext == null) { throw new ArgumentNullException("composerContext"); } if (imageService == null) { throw new ArgumentNullException("imageService"); } if (paymentViewService == null) { throw new ArgumentNullException(nameof(paymentViewService)); } if (recurringScheduleUrlProvider == null) { throw new ArgumentNullException("recurringScheduleUrlProvider"); } if (recurringCartUrlProvider == null) { throw new ArgumentNullException("recurringCartUrlProvider"); } ComposerContext = composerContext; PaymentViewService = paymentViewService; ImageService = imageService; RecurringScheduleUrlProvider = recurringScheduleUrlProvider; RecurringCartUrlProvider = recurringCartUrlProvider; }
public CheckoutController( IPageService pageService, IComposerContext composerContext, ICheckoutBreadcrumbViewService confirmationBreadcrumbViewService, IBreadcrumbViewService breadcrumbViewService, ILanguageSwitchService languageSwitchService, ICartUrlProvider urlProvider, ICheckoutNavigationViewService checkoutNavigationViewService, IPaymentViewService paymentViewService, IMyAccountUrlProvider myAccountUrlProvider, ICartService cartService, IWebsiteContext websiteContext) : base(pageService, composerContext, confirmationBreadcrumbViewService, breadcrumbViewService, languageSwitchService, urlProvider, checkoutNavigationViewService, paymentViewService, myAccountUrlProvider, cartService, websiteContext) { }
public PaymentController(IComposerContext composerContext, IPaymentViewService paymentViewService, IImageViewService imageService, IRecurringScheduleUrlProvider recurringScheduleUrlProvider, IRecurringCartUrlProvider recurringCartUrlProvider) { ComposerContext = composerContext ?? throw new ArgumentNullException(nameof(composerContext)); PaymentViewService = paymentViewService ?? throw new ArgumentNullException(nameof(paymentViewService)); ImageService = imageService ?? throw new ArgumentNullException(nameof(imageService)); RecurringScheduleUrlProvider = recurringScheduleUrlProvider ?? throw new ArgumentNullException(nameof(recurringScheduleUrlProvider)); RecurringCartUrlProvider = recurringCartUrlProvider ?? throw new ArgumentNullException(nameof(recurringCartUrlProvider)); }
public RecurringCartController( IRecurringOrderCartsViewService recurringOrderCarstService, IComposerContext composerContext, IPaymentViewService paymentViewService, IRecurringOrderTemplatesViewService recurringOrderTemplatesService, IShippingMethodViewService shippingMethodViewService, ICartService cartService, ICartUrlProvider cartUrlProvider) { RecurringOrderCartsService = recurringOrderCarstService ?? throw new ArgumentNullException(nameof(recurringOrderCarstService)); ComposerContext = composerContext ?? throw new ArgumentNullException(nameof(composerContext)); PaymentViewService = paymentViewService ?? throw new ArgumentNullException(nameof(paymentViewService));; RecurringOrderTemplatesService = recurringOrderTemplatesService ?? throw new ArgumentNullException(nameof(recurringOrderTemplatesService)); ShippingMethodViewService = shippingMethodViewService ?? throw new ArgumentNullException(nameof(shippingMethodViewService)); CartService = cartService ?? throw new ArgumentNullException(nameof(cartService)); CartUrlProvider = cartUrlProvider ?? throw new ArgumentNullException(nameof(cartUrlProvider)); }
protected CheckoutBaseController( IPageService pageService, IComposerContext composerContext, ICheckoutBreadcrumbViewService confirmationBreadcrumbViewService, IBreadcrumbViewService breadcrumbViewService, ILanguageSwitchService languageSwitchService, ICartUrlProvider urlProvider, ICheckoutNavigationViewService checkoutNavigationViewService, IPaymentViewService paymentViewService, IMyAccountUrlProvider myAccountUrlProvider, ICartService cartService, IWebsiteContext websiteContext ) { if (pageService == null) { throw new ArgumentNullException("pageService"); } if (composerContext == null) { throw new ArgumentNullException("composerContext"); } if (confirmationBreadcrumbViewService == null) { throw new ArgumentNullException("confirmationBreadcrumbViewService"); } if (breadcrumbViewService == null) { throw new ArgumentNullException("breadcrumbViewService"); } if (languageSwitchService == null) { throw new ArgumentNullException("languageSwitchService"); } if (urlProvider == null) { throw new ArgumentNullException("urlProvider"); } if (checkoutNavigationViewService == null) { throw new ArgumentNullException("checkoutNavigationViewService"); } if (paymentViewService == null) { throw new ArgumentNullException("paymentViewService"); } if (myAccountUrlProvider == null) { throw new ArgumentNullException("myAccountUrlProvider"); } if (cartService == null) { throw new ArgumentNullException("cartService"); } PageService = pageService; ComposerContext = composerContext; ConfirmationBreadcrumbViewService = confirmationBreadcrumbViewService; BreadcrumbViewService = breadcrumbViewService; LanguageSwitchService = languageSwitchService; UrlProvider = urlProvider; CheckoutNavigationViewService = checkoutNavigationViewService; PaymentViewService = paymentViewService; MyAccountUrlProvider = myAccountUrlProvider; WebsiteContext = websiteContext; CartService = cartService; }