Beispiel #1
0
        public void TestOrderUpdateUK()
        {
            Order    order    = MockedOrders.CreateNewOrder1();
            Customer customer = MockedCustomer.CreateNewCustomer1();

            OrderService orderService = new OrderService();

            orderService.UpdateOrder(order, customer);
            Assert.AreEqual(0.2d, order.VAT);
        }
Beispiel #2
0
 public static Customer CreateNewCustomer2()
 {
     return(new Customer()
     {
         CustomerId = 2,
         Orders = new Order[] { MockedOrders.CreateNewOrder1() },
         Country = "France",
         DateOfBirth = new DateTime(1985, 8, 4),
         Name = "Joe Bloggs"
     });
 }