If I have `val myvalue: MyObj by lazy {...}`, how ...
# getting-started
k
If I have
val myvalue: MyObj by lazy {...}
, how I could inject different object to myvalue during testing?
c
pass it with your constructor
k
I can't pass many of such objects in constructor, because this field is inside object type
d
You'll need to add some level of indirection, perhaps a factory that creates the value for the lazy field.