public void TestInit()
 {
     _testAgentRepositoryMock = new Mock <IServiceClient <TestAgentDto> >();
     _testAgentsService       = new TestAgentsService(_testAgentRepositoryMock.Object);
     _fixture  = new Fixture();
     _agentTag = _fixture.Create <string>();
 }
示例#2
0
 public TestExecutionService(
     IFileProvider fileProvider,
     ITestRunProvider testRunProvider,
     ITestRunsCleanerServiceClient testRunsCleanerServiceClient,
     ITestsCountsBasedDistributeService testCountsBasedDistributeService,
     ITestsTimesBasedDistributeService testsTimesBasedDistributeService,
     ITestAgentRunProvider testAgentRunProvider,
     ITestsRunnerTestResultsService testResultsService,
     IConsoleProvider consoleProvider,
     ITestAgentsService testAgentService,
     IPathProvider pathProvider,
     ITestCasesFilterService testCasesFilterService,
     ITestCasesHistoryService testCasesHistoryService,
     IPluginService pluginService)
 {
     _fileProvider    = fileProvider;
     _testRunProvider = testRunProvider;
     _testRunsCleanerServiceClient     = testRunsCleanerServiceClient;
     _testCountsBasedDistributeService = testCountsBasedDistributeService;
     _testsTimesBasedDistributeService = testsTimesBasedDistributeService;
     _testAgentRunProvider             = testAgentRunProvider;
     _testResultsService      = testResultsService;
     _consoleProvider         = consoleProvider;
     _testAgentService        = testAgentService;
     _pathProvider            = pathProvider;
     _testCasesFilterService  = testCasesFilterService;
     _testCasesHistoryService = testCasesHistoryService;
     _pluginService           = pluginService;
 }
 public TestAgentRunProvider(
     IServiceClient <TestRunDto> testRunRepository,
     ITestRunOutputServiceClient testRunOutputServiceClient,
     IServiceClient <TestAgentDto> testAgentRepository,
     IServiceClient <TestAgentRunDto> testAgentRunRepository,
     IServiceClient <TestRunCustomArgumentDto> testRunCustomArgumentRepository,
     ITestsRunnerService nativeTestsRunner,
     ITestAgentsLoggerService testAgentsLoggerService,
     IDistributeLogger logger,
     ITestAgentStateSwitcher testAgentStateSwitcher,
     ITestAgentsService testAgentsService,
     IPathProvider pathProvider,
     IFileProvider fileProvider,
     IConsoleProvider consoleProvider,
     IEnvironmentService environmentService,
     IGuidService guidService,
     IPluginService pluginService,
     IDateTimeProvider dateTimeProvider,
     ITaskProvider taskProvider,
     ITestRunLogService testRunLogService,
     ITestAgentRunAvailabilityServiceClient testAgentRunAvailabilityServiceClient,
     ITestRunAvailabilityServiceClient testRunAvailabilityServiceClient)
 {
     _testRunRepository               = testRunRepository;
     _testRunOutputServiceClient      = testRunOutputServiceClient;
     _testAgentRepository             = testAgentRepository;
     _testAgentRunRepository          = testAgentRunRepository;
     _testRunCustomArgumentRepository = testRunCustomArgumentRepository;
     _nativeTestsRunner               = nativeTestsRunner;
     _testAgentsLoggerService         = testAgentsLoggerService;
     _logger = logger;
     _testAgentStateSwitcher = testAgentStateSwitcher;
     _testAgentsService      = testAgentsService;
     _consoleProvider        = consoleProvider;
     _pathProvider           = pathProvider;
     _fileProvider           = fileProvider;
     _environmentService     = environmentService;
     _guidService            = guidService;
     _pluginService          = pluginService;
     _dateTimeProvider       = dateTimeProvider;
     _taskProvider           = taskProvider;
     _testRunLogService      = testRunLogService;
     _testAgentRunAvailabilityServiceClient = testAgentRunAvailabilityServiceClient;
     _testRunAvailabilityServiceClient      = testRunAvailabilityServiceClient;
     _wasTestAgentRunCompleted = false;
 }