/// <summary> /// Initializes a new instance of the <see cref="AccountManager" /> class. /// </summary> /// <param name="cartManager">The cart manager.</param> /// <param name="customerServiceProvider">The customer service provider.</param> /// <param name="contactFactory">The contact factory.</param> public AccountManager(CartManager cartManager, [NotNull] CustomerServiceProvider customerServiceProvider, [NotNull] ContactFactory contactFactory) { Assert.ArgumentNotNull(customerServiceProvider, "customerServiceProvider"); Assert.ArgumentNotNull(contactFactory, "contactFactory"); this.CartManager = cartManager; this.CustomerServiceProvider = customerServiceProvider; this.ContactFactory = contactFactory; }
/// <summary> /// Initializes a new instance of the <see cref="ShippingManager"/> class. /// </summary> /// <param name="shippingServiceProvider">The shipping service provider.</param> /// <param name="cartManager">The cart manager.</param> public ShippingManager([NotNull] ShippingServiceProvider shippingServiceProvider, [NotNull] CartManager cartManager) { Assert.ArgumentNotNull(shippingServiceProvider, "shippingServiceProvider"); Assert.ArgumentNotNull(cartManager, "cartManager"); this.ShippingServiceProvider = shippingServiceProvider; this.CartManager = cartManager; }
/// <summary> /// Initializes a new instance of the <see cref="LoyaltyProgramManager" /> class. /// </summary> /// <param name="loyaltyProgramServiceProvider">The loyalty program service provider.</param> /// <param name="cartManager">The cart manager.</param> public LoyaltyProgramManager([NotNull] LoyaltyCardServiceProvider loyaltyProgramServiceProvider, [NotNull] CartManager cartManager) { Assert.ArgumentNotNull(loyaltyProgramServiceProvider, "loyaltyProgramServiceProvider"); Assert.ArgumentNotNull(cartManager, "cartManager"); this.LoyaltyProgramServiceProvider = loyaltyProgramServiceProvider; this.CartManager = cartManager; }
/// <summary> /// Initializes a new instance of the <see cref="PaymentManager" /> class. /// </summary> /// <param name="paymentServiceProvider">The payment service provider.</param> /// <param name="cartManager">The cart manager.</param> public PaymentManager([NotNull] PaymentServiceProvider paymentServiceProvider, [NotNull] CartManager cartManager) { Assert.ArgumentNotNull(paymentServiceProvider, "paymentServiceProvider"); this.PaymentServiceProvider = paymentServiceProvider; this.CartManager = cartManager; }
/// <summary> /// Initializes a new instance of the <see cref="OrderManager" /> class. /// </summary> /// <param name="orderServiceProvider">The order service provider.</param> /// <param name="cartManager">The cart manager.</param> public OrderManager(CSFServices.Orders.CommerceOrderServiceProvider orderServiceProvider, [NotNull] CartManager cartManager) { Assert.ArgumentNotNull(orderServiceProvider, "orderServiceProvider"); Assert.ArgumentNotNull(cartManager, "cartManager"); this.OrderServiceProvider = orderServiceProvider; this.CartManager = cartManager; }