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); }
private void Run() { Command cmd = null; while ((cmd = queue.Take()) != null) { // process request cmd.Status = Command.CommandStatus.RUNNING; CommandExecutioner.Execute(cmd); } }
public HelpExecutioner(CommandExecutioner excecutioner) { this.excecutioner = excecutioner; }