public CheckoutCommand(IShoppingCartReceiver shoppingCartReceiver) { this.shoppingCartReceiver = shoppingCartReceiver; this.items = new List <string>(); this.items.AddRange(this.shoppingCartReceiver.ListItems()); }
public AddToCartCommand(IShoppingCartReceiver shoppingCartReceiver, string item) { this.shoppingCartReceiver = shoppingCartReceiver; this.item = item; }