dave08
09/16/2018, 3:26 PMval kodein = Kodein.direct {
.....
}
fun Routing.someController(
someRepository: SomeRepository
) { ... }
fun Application.module() {
routing {
someController(kodein.instance())
}
}
But I want to be able to access the kodein
instance inside the Application.module()
in a way that I can replace it in my tests... @Deactivated User?Deactivated User
09/16/2018, 8:09 PMDeactivated User
09/16/2018, 8:09 PM@JvmOverloads
or calls to another function receiving the dependencies (in your case the kodein instance), and then call that method in the testsdave08
09/16/2018, 8:19 PMbdawg.io
09/16/2018, 10:17 PMdave08
09/17/2018, 11:15 AMbdawg.io
09/17/2018, 2:33 PM