realImplementation
inline fun <BIND, IMPL : BIND> MockspressoBuilder.realImplementation(qualifier: Annotation? = null, noinline init: IMPL.() -> Unit = { }): MockspressoBuilder
Content copied to clipboard
Register a request to create a real object of type IMPL bound in the mockspresso graph with a dependencyKey made from type BIND and qualifier.
The supplied init lambda will be called when the real object is created.
inline fun <BIND, IMPL : BIND> MockspressoProperties.realImplementation(qualifier: Annotation? = null, noinline init: IMPL.() -> Unit = { }): Lazy<IMPL>
Content copied to clipboard
Register a request to create a real object of type IMPL bound in the mockspresso graph with a dependencyKey made from type BIND and qualifier.
The supplied init lambda will be called when the real object is created.
Returns a Lazy of the resulting real object IMPORTANT: Reading the value from the returned lazy will cause the underlying MockspressoInstance to be ensured if it hasn't been already.