public void ClearBasket_should_remove_all_items_from_basket() { _baskets.Add(new Basket(_testCustomerId, new List <Item> { new Item("Item1", 1), new Item("Item2", 2), new Item("Item3", 3) })); _sut.ClearBasket(_testCustomerId); _baskets.First().Items.Count.Should().Be(0); }
public Basket ClearBasket(string customerId) { _basketStore.ClearBasket(customerId); return(GetBasketByCustomerId(customerId)); }