Practice using ASP.NET to create and manage routes in a web application.
Make sure you have Git and .NET SDK (v6.0) installed.
- clone your copy, and cd into it
- Run
dotnet restore
to install all the dependencies - Run
dotnet run
to start the server should be fairly similar to how the last workshop ended but it has persisting database memory now.
This app already has a working API but the file that should test the games controller (Test.Api.Tests\Controllers\GamesControllerTest.cs) is empty. You will have to tweak the API by adding dependency injections to get testing to work as well as writing the test file ( hint use moq ).
run dotnet test and if everything is good the tests should pass
Set up a interface and moq to allow the tests to run tests on the functions without altering your database. The original project should also still be able to run. This is complicated enough that one challenge is enough.