For this exercise you will create a trival web application that will Read entries stored within a database.
The goal of this project is to help students learn how to develop a web application using a tested Repository Pattern while implmenting Views in Razor. Students are tasked with completing a Zoolandia ERD as it is to be used for their models.
This solution contains:
- ASP.NET Web Application Project
- Unit Test Project
- Complete Zoolandia ERD. Save the resultant diagram file in root directory of this assignment's repository.
- Using the ERD you created in draw.io,
- Create a model and matching migration for the
ZoolandiaRazor
project. - Implement a fully unit tested Repository.
- Implement Fully implement the Razor Views for the supplied
Animal
,Habitat
andEmployee
controllers using the Specifications below. should only be responsible for receiving user input and printing output.
You'll need to write produce the following HTML responses about Zoolandia.
/Animal
- The View should display a simple HTML list of all animals in your database. You should display the following information about each animal.- Animal name (this information will be an anchor to take the user to the specific animal view)
- Current habitat in the zoo
/Animal/Details/1
- When theid
of an animal is in the URL, display information about that specific animal.- Name
- Species common name (if exists)
- Species scientific name
- Current habitat
- Age of animal
/Habitat
- This will list all habitats open for public visitation.- Habitat name
- How many animals currently in the habitat
/Habitat/Details/1
- Display information about this specific habitat.- Habitat name
- Habitat type
- List the names of the animals currently in the habitat
- List the employees currently assigned to maintenance of the habitat
/Employee/
- List all employees/Employee/Details/1
- Show employees name, age, and habitats currently assigned to