示例#1
0
        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);
        }
示例#2
0
        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);
        }