Exemplo n.º 1
0
        public TestFileRunner(IHttpClient httpClient, ITestFileResultRepositoryFactory repositoryFactory,
                              IConfiguration configuration, ICapturedVariableProviderFactory capturedVariableProviderFactory,
                              ITestFileRunnerLoggerFactory loggerFactory)
        {
            if (httpClient == null)
            {
                throw new ArgumentNullException(nameof(httpClient));
            }

            if (repositoryFactory == null)
            {
                throw new ArgumentNullException(nameof(repositoryFactory));
            }

            if (loggerFactory == null)
            {
                throw new ArgumentNullException(nameof(loggerFactory));
            }

            _httpClient    = httpClient;
            _configuration = configuration;
            _capturedVariableProviderFactory = capturedVariableProviderFactory;
            _loggerFactory  = loggerFactory;
            _currentResults = new List <TestResult>();

            RepositoryFactory = repositoryFactory;
            SessionId         = Guid.NewGuid();
        }
Exemplo n.º 2
0
 public TestFileRunnerFactory(ITestFileResultRepositoryFactory repositoryFactory, IConfiguration configuration,
                              ICapturedVariableProviderFactory capturedVariableProviderFactory, ITestFileRunnerLoggerFactory loggerFactory)
 {
     _repositoryFactory = repositoryFactory;
     _configuration     = configuration;
     _capturedVariableProviderFactory = capturedVariableProviderFactory;
     _loggerFactory = loggerFactory;
 }