Curious as a newbie and non Android dev, why is it not
Copy code
class Component(val heater: Heater, val pump: Pump)
and then in some sort of container, which can override based on configuration for each environment, it passes in either mocks or whatever you want for heater and pump?