public CyberTester(ITestStorage testStorage, ITestCaseProcessorFactory testCaseProcessorFactory, ITestCaseContextFactory testCaseContextFactory, ITestCaseLoggerFactory testCaseLoggerFactory, ILoggerFactory loggerFactory, ISchedule <TestCase> schedule, IEnumerable <ITestCasesPreprocessor> testCasesPreProcessor = null) { _testStorage = testStorage; _testCasesPreProcessors = testCasesPreProcessor ?? Enumerable.Empty <ITestCasesPreprocessor>(); _testCaseLoggerFactory = testCaseLoggerFactory; _testCaseContextFactory = testCaseContextFactory; _testCaseProcessorFactory = testCaseProcessorFactory; _loggerFactory = loggerFactory; _schedule = schedule; }
public TestCaseContextFactory(ITestCaseLoggerFactory testCaseLoggerFactory, IItemProvider itemsInitialiser = null) { _testCaseLoggerFactory = testCaseLoggerFactory; _itemsInitialiser = itemsInitialiser; }
public TestSession(IEnumerable <ITestSession> customTestSessions, ITestCaseProcessorFactory testCaseProcessorFactory, ITestCaseLoggerFactory testCaseLoggerFactory, ILoggerFactory loggerFactory, IDictionary <string, string> options, ISchedule <TestCase> schedule, ITestCaseContextFactory testCaseContextFactory) { _results = new ConcurrentBag <TestCaseResult>(); _customTestSessions = customTestSessions; _testCaseProcessorFactory = testCaseProcessorFactory; _logger = loggerFactory.CreateLogger <TestSession>(); Options = new ReadOnlyDictionary <string, string>(options); _schedule = schedule; _tasks = new List <Task>(); _cancellationToken = Task.Factory.CancellationToken; _testCaseContextFactory = testCaseContextFactory; }