In this second part on TDD for ASP.NET MVC, Eric Vogel covers how to implement unit tests for the remaining CRUD controller actions. Last time I wrote about test-driven development for ASP.NET MVC.
ASP.NET Core 6 allows us to create APIs that include a bare minimum of files, features, and dependencies. Here’s how to test a minimal Web API. ASP.NET Core 6 ...
Learn when static methods can’t be unit tested and how to use wrapper classes and the Moq and xUnit frameworks to unit test them when they can When building or working in .NET applications you might ...