/// <summary>
        /// Initializes a new instance of the <see cref="TestBaseAttribute"/> class.
        /// </summary>
        /// <param name="factory">
        /// A factory to create test commands.
        /// </param>
        protected TestBaseAttribute(ITestCommandFactory factory)
        {
            if (factory == null)
                throw new ArgumentNullException("factory");

            this.factory = factory;
        }
示例#2
0
        private ITestCommand GenerateCommandTree(TestModel testModel, TestExecutionOptions testExecutionOptions, ITestContextManager testContextManager)
        {
            ITestCommandFactory testCommandFactory = CreateTestCommandFactory();

            ITestCommand rootCommand = testCommandFactory.BuildCommands(testModel, testExecutionOptions.FilterSet,
                                                                        testExecutionOptions.ExactFilter, testContextManager);

            return(rootCommand);
        }
示例#3
0
 public TestRepository(ITestCommandFactory testCommandFactory)
 {
     this.testCommandFactory = testCommandFactory.VerifyIsSet(nameof(testCommandFactory));
     this.httpClient         = new HttpClient();
 }