Esempio n. 1
0
        public void CreateOrder()
        {
            Customer customer = _customerCatalog.Read(_customerFK).Result;
            Order    order    = _orderCatalog.Read(_orderFK).Result;

            Assert.AreEqual(_customerFK, customer.Key);
            Assert.AreEqual(_orderFK, order.Key);
        }
Esempio n. 2
0
        public async void CreateOrder()
        {
            // arrange
            // act
            int CustomerFK = await GenerateCustomer();

            int OrderFK = await GenerateOrder(CustomerFK);

            // assert
            Customer customer = await _customerCatalog.Read(CustomerFK);

            Order order = await _orderCatalog.Read(OrderFK);

            Assert.AreEqual(CustomerFK, customer.Key);
            Assert.AreEqual(OrderFK, order.Key);

            Clear(CustomerFK, OrderFK);
        }
Esempio n. 3
0
 /// <summary>
 /// Henter en kunde
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 /// <author>Mathias Poulsen</author>
 public Customer ReadCustomer(int id)
 {
     return(customerCatalog.Read(id));
 }