Exemplo n.º 1
0
 private Engine(CommandExecuter executor, IUserInterface userIo)
 {
     this.executor = executor;
     this.userIO = userIo;
     //// DI: Added IUserInterface and ConsoleIo types
     //// and made the constructor take an user interface usin DI
 }
Exemplo n.º 2
0
 private Engine(CommandExecuter executor, IUserInterface userIo)
 {
     this.executor = executor;
     this.userIO = userIo;
 }