I'm using Autofixture as a SUT factory and am having difficulty Freezing null instances.
I'd like to do something like:
_fixture.Freeze<IPayPalConfiguration>(c => null);
but quickly realized that was wrong. I've worked around the problem using this:
_fixture.Inject((IMyInterface)null);
but it doesn't seem right.
Hopefully someone will contribute the correct solution to the HiveMind.