Esempio n. 1
0
 public PlaceOrderCommandHandler(
     IBus bus,
     ICartStoreService cartStoreService)
 {
     _bus = bus;
     _cartStoreService = cartStoreService;
 }
        public static ShoppingCart GetCart(ICartStoreService cartStoreService)
        {
            var cart = new ShoppingCart
            {
                ShoppingCartId = cartStoreService.GetCartId()
            };

            return cart;
        }
Esempio n. 3
0
        public static ShoppingCart GetCart(ICartStoreService cartStoreService)
        {
            var cart = new ShoppingCart
            {
                ShoppingCartId = cartStoreService.GetCartId()
            };

            return(cart);
        }
 public ShoppingCartController(IBus bus, ICartStoreService cartStoreService)
 {
     _bus = bus;
     _cartStoreService = cartStoreService;
 }
Esempio n. 5
0
 public ShoppingCartController(IBus bus, ICartStoreService cartStoreService)
 {
     _bus = bus;
     _cartStoreService = cartStoreService;
 }