public void OrderRepository_Should_Return_orderItems() { IOrderRepository rep = new TestOrderRepository(); IList <OrderItem> orders = rep.GetOrderItems().ToList(); Assert.IsNotNull(orders); }
public void OrderRepository_Should_Accept_Product_1() { Product p = _catalogService.GetProduct(1); IOrderRepository rep = new TestOrderRepository(); Order order = new Order("testuser"); OrderItem item1 = new OrderItem(p, 1); order.Items.Add(item1); Assert.AreEqual(1, order.Items.Count); }
public void OrderRepository_CanReturn_Transactions() { TestOrderRepository rep = new TestOrderRepository(); Assert.IsNotNull(rep.GetTransactions()); }
public void OrderRepository_Should_Return_orderItems() { IOrderRepository rep = new TestOrderRepository(); IList<OrderItem> orders = rep.GetOrderItems().ToList(); Assert.IsNotNull(orders); }