Пример #1
0
 public void Initialize()
 {
     this.writer   = new ConsoleWriter();
     this.reader   = new ConsoleReader();
     this.database = new AirConditionerDatabase();
     this.airConditionalTesterSystemEngine = new AirConditionalTesterSystemEngine(this.reader, this.writer, this.database);
     this.commandExecutioner = new CommandExecutioner(this.airConditionalTesterSystemEngine);
 }
Пример #2
0
        private void Run()
        {
            Command cmd = null;

            while ((cmd = queue.Take()) != null)
            {
                // process request
                cmd.Status = Command.CommandStatus.RUNNING;
                CommandExecutioner.Execute(cmd);
            }
        }
Пример #3
0
 public HelpExecutioner(CommandExecutioner excecutioner)
 {
     this.excecutioner = excecutioner;
 }