public CustomerAddressViewService( IViewModelMapper viewModelMapper, ICustomerRepository customerRepository, ICustomerAddressRepository customerAddressRepository, IAddressRepository addressRepository, IMyAccountUrlProvider myAccountUrlProvider, ICountryService countryService, IComposerContext composerContext, IRecurringOrderCartsViewService recurringOrderCartsViewService) { if (viewModelMapper == null) { throw new ArgumentNullException("viewModelMapper"); } if (customerRepository == null) { throw new ArgumentNullException("customerRepository"); } if (customerAddressRepository == null) { throw new ArgumentNullException("customerAddressRepository"); } if (addressRepository == null) { throw new ArgumentNullException("addressRepository"); } if (myAccountUrlProvider == null) { throw new ArgumentNullException("myAccountUrlProvider"); } if (countryService == null) { throw new ArgumentNullException("countryService"); } if (composerContext == null) { throw new ArgumentNullException("composerContext"); } if (recurringOrderCartsViewService == null) { throw new ArgumentNullException("recurringOrderCartsViewService"); } ViewModelMapper = viewModelMapper; CustomerRepository = customerRepository; CustomerAddressRepository = customerAddressRepository; AddressRepository = addressRepository; MyAccountUrlProvider = myAccountUrlProvider; CountryService = countryService; ComposerContext = composerContext; RecurringOrderCartsViewService = recurringOrderCartsViewService; }
public ShippingMethodViewService( IFulfillmentMethodRepository fulfillmentMethodRepository, ICartViewModelFactory cartViewModelFactory, ICartRepository cartRepository, ICartService cartService, IRecurringOrderTemplateViewModelFactory recurringOrderTemplateViewModelFactory, IRecurringOrderCartsViewService recurringOrderCartsViewService, IRecurringOrdersSettings recurringOrdersSettings) { FulfillmentMethodRepository = fulfillmentMethodRepository ?? throw new ArgumentNullException(nameof(fulfillmentMethodRepository)); CartViewModelFactory = cartViewModelFactory ?? throw new ArgumentNullException(nameof(cartViewModelFactory)); CartRepository = cartRepository ?? throw new ArgumentNullException(nameof(cartRepository)); CartService = cartService ?? throw new ArgumentNullException(nameof(cartService)); RecurringOrderTemplateViewModelFactory = recurringOrderTemplateViewModelFactory ?? throw new ArgumentNullException(nameof(recurringOrderTemplateViewModelFactory)); RecurringOrderCartsViewService = recurringOrderCartsViewService ?? throw new ArgumentNullException(nameof(recurringOrderCartsViewService)); RecurringOrdersSettings = recurringOrdersSettings; }
public PaymentViewService(IPaymentRepository paymentRepository, ICartViewModelFactory cartViewModelFactory, ICartRepository cartRepository, ILookupService lookupService, IViewModelMapper viewModelMapper, IPaymentProviderFactory paymentProviderFactory, IRecurringOrderTemplatesViewService recurringOrderTemplatesViewService, IRecurringOrderCartsViewService recurringOrderCartsViewService, IRecurringOrdersSettings recurringOrdersSettings ) { PaymentRepository = paymentRepository ?? throw new ArgumentNullException(nameof(paymentRepository)); CartViewModelFactory = cartViewModelFactory ?? throw new ArgumentNullException(nameof(cartViewModelFactory)); CartRepository = cartRepository ?? throw new ArgumentNullException(nameof(cartRepository)); LookupService = lookupService ?? throw new ArgumentNullException(nameof(lookupService)); ViewModelMapper = viewModelMapper ?? throw new ArgumentNullException(nameof(viewModelMapper)); PaymentProviderFactory = paymentProviderFactory ?? throw new ArgumentNullException(nameof(paymentProviderFactory)); RecurringOrderTemplatesViewService = recurringOrderTemplatesViewService ?? throw new ArgumentNullException(nameof(recurringOrderTemplatesViewService)); RecurringOrderCartsViewService = recurringOrderCartsViewService ?? throw new ArgumentNullException(nameof(recurringOrderCartsViewService)); RecurringOrdersSettings = recurringOrdersSettings; }
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)); }
public CustomerAddressViewService( IViewModelMapper viewModelMapper, ICustomerRepository customerRepository, ICustomerAddressRepository customerAddressRepository, IAddressRepository addressRepository, IMyAccountUrlProvider myAccountUrlProvider, ICountryService countryService, IComposerContext composerContext, IRecurringOrderCartsViewService recurringOrderCartsViewService) { ViewModelMapper = viewModelMapper ?? throw new ArgumentNullException(nameof(viewModelMapper)); CustomerRepository = customerRepository ?? throw new ArgumentNullException(nameof(customerRepository)); CustomerAddressRepository = customerAddressRepository ?? throw new ArgumentNullException(nameof(customerAddressRepository)); AddressRepository = addressRepository ?? throw new ArgumentNullException(nameof(addressRepository)); MyAccountUrlProvider = myAccountUrlProvider ?? throw new ArgumentNullException(nameof(myAccountUrlProvider)); CountryService = countryService ?? throw new ArgumentNullException(nameof(countryService)); ComposerContext = composerContext ?? throw new ArgumentNullException(nameof(composerContext)); RecurringOrderCartsViewService = recurringOrderCartsViewService ?? throw new ArgumentNullException(nameof(recurringOrderCartsViewService)); }