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); }
public IActionResult LocationOrderHistory(int ID) { var orderList = new LocationOrderList { List = Repo.GetAllOrdersByLocation(ID), CustomerList = (List <Customer>)Repo.GetAllCustomer() }; return(View(orderList)); }