Exemplo n.º 1
0
        public void TestCancelOrder()
        {
            //Arrange
            DataCustomerOrder    dataOrder = new DataCustomerOrder();
            ServiceCustomerOrder order     = new ServiceCustomerOrder();

            // Get the first order in the DB
            order = dataOrder.GetOrder(1);

            // Change the order status to Cancelled
            order.Status = "Cancelled";

            //Act
            dataOrder.UpdateOrder(order);  // Update the order and update the database

            //Assert
            Assert.AreEqual("Cancelled", dataOrder.GetOrder(1).Status);
        }
Exemplo n.º 2
0
 public void UpdateOrder(ServiceCustomerOrder order)
 {
     dataCustomerOrder.UpdateOrder(order);
 }