public void Get_Correct_Location(int locationID, int orderHistoryID) { OrderHistoryRepository orderHistoryRepo = new OrderHistoryRepository(context); OrderHistory orderHistory = orderHistoryRepo.GetById(orderHistoryID); OrderHistory orderHistory1 = orderHistoryRepo.getLocationRef(orderHistory); Location location = orderHistory1.Location; Assert.True(location.LocationId == locationID); }
public void Get_Correct_Customer(int customerID, int orderHistoryID) { OrderHistoryRepository orderHistoryRepo = new OrderHistoryRepository(context); OrderHistory orderHistory = orderHistoryRepo.GetById(orderHistoryID); OrderHistory orderHistory1 = orderHistoryRepo.getCustomerRef(orderHistory); Customer customer = orderHistory1.Customer; Assert.True(customer.CustomerId == customerID); }