public void AddToBasket_TestForRegisteredUser() { RegisteredUser user = new RegisteredUser(); Product product = new Product(); user.AddToBasket(product); Assert.AreEqual(product, user.Basket.Last()); }
public void CancelOrder_Test() { RegisteredUser user = new RegisteredUser(); Product product = new Product(); user.AddToBasket(product); Order order = new Order(product, "UK", 12); user.CreateOrder(order); user.CancelOrder(order); Assert.That(user.Orders[user.Orders.IndexOf(order)].Status == Order.Statuses.CanceledByUser); }