public CommandLineHelpCommandTests() { _commandRepository = Substitute.For <ICommandRepository>(); _commandRepository.GetCommandsInfo() .Returns(new List <CommandInfo>() { new CommandInfo() { Name = "command1", Description = "The first command." }, new CommandInfo() { Name = "command2" }, }); _commandLineParser = new CommandLineParser(_commandRepository); }