autoFactoryMock

fun <T> Dependencies.autoFactoryMock(factoryKey: DependencyKey<T>): T

Returns a Factory object for the given factoryKey. The object will be mocked and each method will return a dependency from the underlying Mockspresso instance.

Generally you shouldn't need to access this method directly, prefer applying with MockspressoBuilder.autoFactory or MockspressoProperties.autoFactory