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; }
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; }