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); }
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); }
/// <summary> /// Henter en kunde /// </summary> /// <param name="id"></param> /// <returns></returns> /// <author>Mathias Poulsen</author> public Customer ReadCustomer(int id) { return(customerCatalog.Read(id)); }