Testing made easy through ASP.NET Core
The ASP.NET Core team made our life easier by designing ASP.NET Core for testability; most of the testing is way easier than before the ASP.NET Core era. Internally, they use xUnit to test .NET Core and EF Core, and we use xUnit as well throughout the book. xUnit is my favorite testing framework; what a nice coincidence. We are not going full-TDD-mode for all samples as it would deviate our focus from the matter at stake, but I did my best to bring as much automated testing as possible to the table! Why? Because testability is usually the sign of a good design, which allows me to prove some concepts by using tests instead of words.
Moreover, in many code samples, the test cases are the consumers, making the program lighter without building a full user interface over it. That allows us to focus on the patterns that we are exploring instead of getting our focus scattered over some boilerplate code.