public void SetUp() { var commands = new[] { typeof(TestCommand) }; _repo = new ConsoleCommandRepository(); _repo.AddCommands(commands); }
/// <summary> /// ctors an instance with the provided commands from the provided assemblies /// </summary> public Engine(IEnumerable<Assembly> assemblies) { _commandRepository = new ConsoleCommandRepository(); _commandRepository.AddCommands(assemblies); }
/// <summary> /// ctors an instance with the provided command types /// </summary> public Engine(IEnumerable<Type> types) { _commandRepository = new ConsoleCommandRepository(); _commandRepository.AddCommands(types); }
public void SetUp() { var commands = new[] {typeof (TestCommand)}; _repo = new ConsoleCommandRepository(); _repo.AddCommands(commands); }