public WashMachine(
     IEngineController engineController,
     IHeaterController heaterController,
     IPumpController pumpController)
 {
     _engineController = engineController;
     _heaterController = heaterController;
     _pumpController   = pumpController;
 }
Esempio n. 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();
        }
Esempio n. 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();
        }