Test the app
Test the app
That's it! You've completely implemented the Pizza List page. Let's test it with the following steps:
Ensure you've saved all your changes, and then run the following .NET CLI command in the terminal:
dotnet run
The app builds and runs. If there are any build errors, resolve them and then attempt to run again.
Open the app in your browser by browsing to the HTTPS URL.
Navigate to the new Pizza page by clicking on the
Pizza List
link in the navigation bar.Fill in the form to create a new pizza and click the
Add
button. You should see your new pizza appear in the list of pizzas.Test the validation by entering an invalid pizza information, such as a blank pizza name or a price of 10000 or greater. You should see the validation error message displayed.
Delete a pizza from the list by clicking the
Delete
button. You should see the pizza disappear from the list.
Last updated