While updating AutoFake from v 5.x to 6.0.0, many of my tests failed. It seems that the Resolve method for mock doesn't register it and I need to call Provide with the returned instance:
var instance = autoFake.Resolve<IInterface>();
var sut = autoFake.Resolve<SystemUnderTest>();
don't work, instance of IInterface injected in sut if not the same.
var instance = autoFake.Resolve<IInterface>();
autoFake.Provide(instance);
var sut = autoFake.Resolve<SystemUnderTest>();
Works
Could you have a look?
While updating AutoFake from v 5.x to 6.0.0, many of my tests failed. It seems that the
Resolvemethod for mock doesn't register it and I need to callProvidewith the returned instance:don't work, instance of
IInterfaceinjected in sut if not the same.Works
Could you have a look?