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 }
private Engine(CommandExecuter executor, IUserInterface userIo) { this.executor = executor; this.userIO = userIo; }