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:

  1. 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.

  2. Open the app in your browser by browsing to the HTTPS URL.

  3. Navigate to the new Pizza page by clicking on the Pizza List link in the navigation bar.

  4. 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.

  5. 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.

  6. Delete a pizza from the list by clicking the Delete button. You should see the pizza disappear from the list.

Last updated