How to test Mediatr-enabled ASP.NET Core Web API endpoints
Jul 3, 2021
Mediatr enabled the Command Query Responsibility Segregation pattern for any workload in .NET, but it can be very powerful when sat just behind a Web API. Testing your endpoints and Mediatr calls with Moq can ensure that your code handles the segregation correctly.