public void Add_Item_To_Order_Increment_Quantity_Test() { //Setup var ordC = new OrderCtrl(); //Act ordC.AddItemToOrder(1000000, 1000000); //Assert Assert.IsTrue(ordC.GetOrderById(1000000).ItemsList[0].Quantity == 2); }
public void Add_New_Item_To_Order_Test() { //Setup var ordC = new OrderCtrl(); //Act ordC.AddItemToOrder(1000001, 1000001); var list = ordC.GetOrderById(1000001).ItemsList; //Assert Assert.IsTrue(list.Count == 2); }