public void SetUp()
        {
            var commands = new[] { typeof(TestCommand) };

            _repo = new ConsoleCommandRepository();
            _repo.AddCommands(commands);
        }
예제 #2
0
 /// <summary>
 /// ctors an instance with the provided commands from the provided assemblies
 /// </summary>
 public Engine(IEnumerable<Assembly> assemblies)
 {
     _commandRepository = new ConsoleCommandRepository();
     _commandRepository.AddCommands(assemblies);
 }
예제 #3
0
 /// <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);
 }