public void CanEditOrderWithoutChanging() { var repo = new MockOrdersRepo(); var date = "06012013"; var orders = repo.GetAllOrders(date); var order = orders[2]; var updatedOrder = repo.EditOrder(order, date); Assert.AreEqual("Woods", updatedOrder.Name); Assert.AreEqual(475.00M, updatedOrder.LaborCost); }
public void CanEditOrder() { var repo = new MockOrdersRepo(); var date = "06012013"; var orders = repo.GetAllOrders(date); var order = orders[0]; order.ProductType = "Laminate"; order.Name = "Carol"; var updatedOrder = repo.EditOrder(order, date); Assert.AreNotEqual("Wise", updatedOrder.Name); Assert.AreNotEqual("Wood", updatedOrder.ProductType); }