public WashMachine( IEngineController engineController, IHeaterController heaterController, IPumpController pumpController) { _engineController = engineController; _heaterController = heaterController; _pumpController = pumpController; }
public PlantManager() { _plantSwitchDictionary = new Dictionary <IPlant, IStopSwitch>(); _kernel = new StandardKernel(new Bindings()); _kernel.Load(Assembly.GetExecutingAssembly()); _pump = _kernel.Get <IPumpController>(); InitMotorControl(); InitPlants(); InitSwitches(); SetRelations(); }
public PlantManager() { _plantSwitchDictionary = new Dictionary<IPlant, IStopSwitch>(); _kernel = new StandardKernel(new Bindings()); _kernel.Load(Assembly.GetExecutingAssembly()); _pump = _kernel.Get<IPumpController>(); InitMotorControl(); InitPlants(); InitSwitches(); SetRelations(); }