Source code accompanying the video https://youtu.be/JKytAdsWaQs
Writing a mock repository for unit testing can require a large amount of coding that simply duplicates the features of a real database. Nowadays, the Entity Framework Core In-Memory database does the work for you.
To create the database, run update-database on the Package Manager console.