Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public AirConditionalTesterSystemEngine(IInputReader inputReader, IOutputWriter outputWriter, IAirConditionerDatabase database)
 {
     this.Reader             = inputReader;
     this.Writer             = outputWriter;
     this.commandExecutioner = new CommandExecutioner(this);
     this.Database           = database;
 }