/// <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; }
private ITestCommand GenerateCommandTree(TestModel testModel, TestExecutionOptions testExecutionOptions, ITestContextManager testContextManager) { ITestCommandFactory testCommandFactory = CreateTestCommandFactory(); ITestCommand rootCommand = testCommandFactory.BuildCommands(testModel, testExecutionOptions.FilterSet, testExecutionOptions.ExactFilter, testContextManager); return(rootCommand); }
public TestRepository(ITestCommandFactory testCommandFactory) { this.testCommandFactory = testCommandFactory.VerifyIsSet(nameof(testCommandFactory)); this.httpClient = new HttpClient(); }