danclarke, Just been banging my head against a wall trying to work out why an injected dependency was coming through as null in a WebApplicationFactory test.
Turned out it was because I was doing the injection via a primary constructor, and switching to a normal constructor fix it! I assumed primary constructors were just syntax sugar - so this is surprisingly unexpected.
Anyone know why primary constructors would behave differently for DI?
#dotnet #csharp