This is the base code to work in this challenge, please don´t change the folder structure of WebApi and WebApiTest projects and don´t move the provided files to a different place as this will result in a test failure.
This solution requires .NET 6 installed.
To build the solution run from the project folder
dotnet buildTo run the solution locally just run this command from the project folder (WebApi folder)
dotnet runTo run the tests just run this command
dotnet testNote that dotnet-ef tools is required to run the migration, run the following to install the tool
dotnet tool install --global dotnet-efTo add the migration, run this command from the project folder (WebApi folder)
dotnet ef migrations add InitialCreatewhere InitialCreate is the name of the migration
dotnet ef database update