private void DeleteOrder(Order orderToDel)
 {
     _orderDataMapper.Delete(orderToDel);
 }
 private Order InsertOrder()
 {
     Customer customer = new Customer { ID = "VINET" };
     Employee employee = new Employee { ID = 4 };
     DateTime dt = DateTime.Now;
     Order order = new Order
     {
         Customer = customer,
         Employee = employee,
         OrderDate = dt,
         RequiredDate = dt.AddDays(20),
         ShippedDate = dt.AddDays(10),
         ShipVia = 2,
         Freight = (decimal)10.2,
         ShipName = "KadeteShip",
         ShipAddress = "PevidesAdress",
         ShipCity = "Kadete Town",
         ShipRegion = "RL",
         ShipPostalCode = "2640",
         ShipCountry = "Portugal"
     };
     _orderDataMapper.Insert(order);
     Assert.IsNotNull(order.ID);
     Assert.AreNotEqual(0, order.ID);
     Assert.AreEqual(4, order.Employee.ID);
     Assert.AreEqual("VINET", order.Customer.ID);
     return order;
 }
        public void UpdateOrder(Order order)
        {
            order.Customer.ID = "TOMSP";
            order.Employee.ID = 6;
            order.ShipName = "KadeteShip";

            _orderDataMapper.Update(order);

            Assert.AreEqual("TOMSP", order.Customer.ID);
            Assert.AreEqual(6, order.Employee.ID);
            Assert.AreEqual("KadeteShip", order.ShipName);
            Assert.AreEqual("PevidesAdress", order.ShipAddress);
        }