mockspresso-api / com.episode6.hackit.mockspresso / dependencyOf

dependencyOf

inline fun <reified T : Any> Mockspresso.Builder.dependencyOf(qualifier: Annotation? = null, noinline value: () -> T?): Mockspresso.Builder

Apply a specific instance of an object as a mockspresso dependency. Kotlin alias for Mockspresso.Builder.dependencyProvider.

Parameters

qualifier - Optional qualifier annotation that applies to the binding key of this dependency

value - Kotlin function/lambda that returns the dependency

Return
the builder