public WashMachine(
     IEngineController engineController,
     IHeaterController heaterController,
     IPumpController pumpController)
 {
     _engineController = engineController;
     _heaterController = heaterController;
     _pumpController   = pumpController;
 }
Example #2
0
        public PlantManager()
        {
            _plantSwitchDictionary = new Dictionary <IPlant, IStopSwitch>();

            _kernel = new StandardKernel(new Bindings());
            _kernel.Load(Assembly.GetExecutingAssembly());

            _pump = _kernel.Get <IPumpController>();

            InitMotorControl();
            InitPlants();
            InitSwitches();
            SetRelations();
        }
Example #3
0
        public PlantManager()
        {
            _plantSwitchDictionary = new Dictionary<IPlant, IStopSwitch>();

            _kernel = new StandardKernel(new Bindings());
            _kernel.Load(Assembly.GetExecutingAssembly());

            _pump = _kernel.Get<IPumpController>();

            InitMotorControl();
            InitPlants();
            InitSwitches();
            SetRelations();
        }