public static FakeApplication MakeFakeApplication(IConsoleAdapter console, IErrorAdapter error, params Type[] commands) { var fake = new FakeApplication(console, error, commands); return fake; }
public void SetUp() { _testConsole = new ConsoleInterfaceForTesting(); _console = new ConsoleAdapter(_testConsole); _error = new ErrorAdapter(_testConsole, "ERROR: "); _app = FakeApplication.MakeFakeApplication(_console, _error, typeof(StartCommand), typeof(Command1), typeof(Command2), typeof(Command3), typeof(ExitCommand), typeof(SetPromptCommand)); }