private void OnTestFinish(TestRunDto testDtoWhenFinished) { Action.Safe(() => { RunRepository.OnTestFinished(testDtoWhenFinished); var testDtoWhenStarted = TestRunsRepository.ExtractCorrespondingTestRun(testDtoWhenFinished); var finalTest = TestRunProcessor.Process(testDtoWhenStarted, testDtoWhenFinished, RunRepository.RunGuid); DataService.SaveTestRun(finalTest); }); }
private void OnTestFinish(TestRunDto testDtoWhenFinished, TestOutputDto testOutputDto) { Action.Safe(() => { RunRepository.OnTestFinished(testDtoWhenFinished); var testDtoWhenStarted = TestRunsRepository.ExtractCorrespondingTestRun(testDtoWhenFinished); var finalTest = TestRunProcessor.Process(testDtoWhenStarted, testDtoWhenFinished, RunRepository.RunGuid); Logger.Debug($"Saving test run '{finalTest.Name}' (Guid: {finalTest.TestInfo.Guid})"); DataWriterService.SaveTestRun(finalTest, testOutputDto); }); }