Robert MacLean
04/16/2021, 12:21 PMJoost Klitsie
04/16/2021, 12:44 PMbindSingleton<Consumable> { Petrol() }
inSet<Engine> { provider { instance<Consumable>() } }
Then your provider will always provide the singletonromainbsl
04/17/2021, 5:37 AMRobert MacLean
04/19/2021, 6:39 AMengines
- it would be great to just have them in a set so I can do that common start up over the set.
I would also like to grab individual engines out from a unit testing perspective so that I can run tests against the code I care about.
A different approach is different containers for unit tests and actual code, but have really found massive benefits from the module stuff and having a single container setup; as such wouldn’t like to tweak that too much.