public void Should_return_a_basket_given_a_basket_id() { var basketStore = new BasketStore(); var basket = new Basket(); var basketId = basketStore.Add(basket); Assert.That(basketStore.Get(basketId), Is.EqualTo(basket)); }
public void Should_return_existing_basket_from_new_basketstore() { var basketStore = new BasketStore(); var basket = new Basket(); var basketId = basketStore.Add(basket); var basketStore2 = new BasketStore(); Assert.That(basketStore2.Get(basketId), Is.EqualTo(basket)); }
public void Should_retrieve_correct_basket() { var basketStore = new BasketStore(); basketStore.Add(new Basket()); var basket2 = new Basket(); var basketId2 = basketStore.Add(basket2); basketStore.Add(new Basket()); Assert.That(basketStore.Get(basketId2), Is.EqualTo(basket2)); }