Example #1
0
 public CheckoutController(IOrderManager orderManager, IOrderItemManager orderItemManager, IBasketManager basketManager, IBasketItemManager basketItemManager, IEmailSender emailSender, IHostingEnvironment environment, IConfiguration configuration)
 {
     _orderItemManager  = orderItemManager;
     _orderManager      = orderManager;
     _basketItemManager = basketItemManager;
     _basketManager     = basketManager;
     _emailSender       = emailSender;
     _environment       = environment;
     _configuration     = configuration;
 }
        public ShoppingBasketService(IReceiptBuilder receiptBuilder, IBasketItemManager basketItemManager)
        {
            if (receiptBuilder == null)
            {
                throw new ArgumentNullException(nameof(receiptBuilder));
            }
            if (basketItemManager == null)
            {
                throw new ArgumentNullException(nameof(basketItemManager));
            }

            _receiptBuilder    = receiptBuilder;
            _basketItemManager = basketItemManager;
        }
 // Constructor
 public BasketController(IBasketManager basketManager, IBasketItemManager basketItemManager, SignInManager <User> signInManager)
 {
     _basketManager     = basketManager;
     _basketItemManager = basketItemManager;
     _signInManager     = signInManager;
 }
Example #4
0
 public BasketComponent(IBasketManager basketManager, IBasketItemManager basketItemManager)
 {
     _basketManager     = basketManager;
     _basketItemManager = basketItemManager;
 }