public RecurringOrderCartsViewService(
     ICartRepository cartRepository,
     IOvertureClient overtureClient,
     IRecurringOrderCartViewModelFactory recurringOrderCartViewModelFactory,
     IImageService imageService,
     ILookupService lookupService,
     IRecurringOrdersRepository recurringOrdersRepository,
     IComposerContext composerContext,
     IAddressRepository addressRepository,
     ICouponViewService couponViewService,
     IRecurringCartUrlProvider recurringCartUrlProvider,
     IRecurringScheduleUrlProvider recurringScheduleUrlProvider,
     IRecurringOrdersSettings recurringOrdersSettings)
 {
     OvertureClient = overtureClient ?? throw new ArgumentNullException(nameof(overtureClient));
     CartRepository = cartRepository ?? throw new ArgumentNullException(nameof(cartRepository));
     RecurringOrderCartViewModelFactory = recurringOrderCartViewModelFactory ?? throw new ArgumentNullException(nameof(recurringOrderCartViewModelFactory));
     ImageService                 = imageService ?? throw new ArgumentNullException(nameof(imageService));
     LookupService                = lookupService ?? throw new ArgumentNullException(nameof(lookupService));
     RecurringOrdersRepository    = recurringOrdersRepository ?? throw new ArgumentNullException(nameof(recurringOrdersRepository));
     ComposerContext              = composerContext ?? throw new ArgumentNullException(nameof(composerContext));
     AddressRepository            = addressRepository ?? throw new ArgumentNullException(nameof(addressRepository));
     CouponViewService            = couponViewService ?? throw new ArgumentNullException(nameof(couponViewService));
     RecurringCartUrlProvider     = recurringCartUrlProvider ?? throw new ArgumentNullException(nameof(recurringCartUrlProvider));
     RecurringScheduleUrlProvider = recurringScheduleUrlProvider ?? throw new ArgumentNullException(nameof(recurringScheduleUrlProvider));
     RecurringOrdersSettings      = recurringOrdersSettings;
 }
Esempio n. 2
0
        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 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 RecurringOrderCartViewModelFactory(
     ICartViewModelFactory cartViewModelFactory,
     IViewModelMapper viewModelMapper,
     IComposerContext composerContext,
     IRecurringCartUrlProvider recurringCartUrlProvider,
     IRecurringScheduleUrlProvider recurringScheduleUrlProvider,
     ILineItemViewModelFactory lineItemViewModelFactory)
 {
     CartViewModelFactory         = cartViewModelFactory ?? throw new ArgumentNullException(nameof(cartViewModelFactory));
     ViewModelMapper              = viewModelMapper ?? throw new ArgumentNullException(nameof(viewModelMapper));
     ComposerContext              = composerContext ?? throw new ArgumentNullException(nameof(composerContext));
     RecurringCartUrlProvider     = recurringCartUrlProvider ?? throw new ArgumentNullException(nameof(recurringCartUrlProvider));
     RecurringScheduleUrlProvider = recurringScheduleUrlProvider ?? throw new ArgumentNullException(nameof(recurringScheduleUrlProvider));
     LineItemViewModelFactory     = lineItemViewModelFactory ?? throw new ArgumentNullException(nameof(lineItemViewModelFactory));
 }
        public CustomerController(
            IComposerContext composerContext,
            IMyAccountUrlProvider myAccountUrlProvider,
            ICustomerViewService customerViewService,
            ICustomerAddressViewService customerAddressViewService,
            ICartUrlProvider cartUrlProvider,
            IRecurringScheduleUrlProvider recurringScheduleUrlProvider,
            IRecurringCartUrlProvider recurringCartUrlProvider)
        {
            if (composerContext == null)
            {
                throw new ArgumentNullException("composerContext");
            }
            if (myAccountUrlProvider == null)
            {
                throw new ArgumentNullException("myAccountUrlProvider");
            }
            if (customerViewService == null)
            {
                throw new ArgumentNullException("customerViewService");
            }
            if (customerAddressViewService == null)
            {
                throw new ArgumentNullException("customerAddressViewService");
            }
            if (cartUrlProvider == null)
            {
                throw new ArgumentNullException("cartUrlProvider");
            }
            if (recurringScheduleUrlProvider == null)
            {
                throw new ArgumentNullException("recurringScheduleUrlProvider");
            }
            if (recurringCartUrlProvider == null)
            {
                throw new ArgumentNullException("recurringCartUrlProvider");
            }

            ComposerContext              = composerContext;
            MyAccountUrlProvider         = myAccountUrlProvider;
            CustomerViewService          = customerViewService;
            CustomerAddressViewService   = customerAddressViewService;
            CartUrlProvider              = cartUrlProvider;
            RecurringScheduleUrlProvider = recurringScheduleUrlProvider;
            RecurringCartUrlProvider     = recurringCartUrlProvider;
        }
Esempio n. 6
0
 public CustomerController(
     IComposerContext composerContext,
     IMyAccountUrlProvider myAccountUrlProvider,
     ICustomerViewService customerViewService,
     ICustomerAddressViewService customerAddressViewService,
     ICartUrlProvider cartUrlProvider,
     IRecurringScheduleUrlProvider recurringScheduleUrlProvider,
     IRecurringCartUrlProvider recurringCartUrlProvider)
 {
     ComposerContext              = composerContext ?? throw new ArgumentNullException(nameof(composerContext));
     MyAccountUrlProvider         = myAccountUrlProvider ?? throw new ArgumentNullException(nameof(myAccountUrlProvider));
     CustomerViewService          = customerViewService ?? throw new ArgumentNullException(nameof(customerViewService));
     CustomerAddressViewService   = customerAddressViewService ?? throw new ArgumentNullException(nameof(customerAddressViewService));
     CartUrlProvider              = cartUrlProvider ?? throw new ArgumentNullException(nameof(cartUrlProvider));
     RecurringScheduleUrlProvider = recurringScheduleUrlProvider ?? throw new ArgumentNullException(nameof(recurringScheduleUrlProvider));
     RecurringCartUrlProvider     = recurringCartUrlProvider ?? throw new ArgumentNullException(nameof(recurringCartUrlProvider));
 }