Primary Constructor and Logging Don't Mix

Ever tried to use Primary Constructors with LoggerMessage source code generator based logging calls? It doesn’t work how you think!

April 4, 2024 · 4 min

Using Moq Callback to set values to drive tests

How to set a value on an object passed to a mock to drive conditional logic further in the system under test

June 23, 2020 · 3 min

Mocking ILogger with Moq

Looking at how to verify calls to Ilogger based extension methods using Moq.

February 6, 2020 · 9 min

Integration Testing with ASP.NET Core 3.1 - Swapping a Dependency with Moq

Investigating how to write integration tests while swapping out dependencies with mocked instances using Moq

December 23, 2019 · 5 min