예제 #1
0
        public void GetAllCustomerShouldReturnAListOfRegisteredCustomer()
        {
            // Note:
            // At this moment the DB count with 5 initial Customer for demo

            // Arrange
            List <Customer> Customers;

            // Action
            Customers = (List <Customer>)repo.GetAllCustomer();

            // Assert
            Assert.NotNull(Customers);
        }
예제 #2
0
        public IActionResult LocationOrderHistory(int ID)
        {
            var orderList = new LocationOrderList
            {
                List         = Repo.GetAllOrdersByLocation(ID),
                CustomerList = (List <Customer>)Repo.GetAllCustomer()
            };

            return(View(orderList));
        }