public Engine(IRepository repository, IUnitFactory unitFactory) { this.repository = repository; this.unitFactory = unitFactory; commandInterpreter = new CommandInterpreter(this.repository, this.unitFactory); }