public GhprMSTestSpecFlowHelper(ILogger logger)
 {
     ScreenHelper           = new GhprMSTestSpecFlowScreenHelper();
     TestDataHelper         = new GhprMSTestSpecFlowTestDataHelper();
     UpdateTestDataProvider = true;
     _logger = logger;
 }
        public TestRunDto GetTestRunOnScenarioStart(ITestRunner runner, FeatureInfo fi, ScenarioInfo si, FeatureContext fc, ScenarioContext sc)
        {
            var tc = sc.TestContext();

            ScreenHelper   = new GhprMSTestSpecFlowScreenHelper();
            TestDataHelper = new GhprMSTestSpecFlowTestDataHelper(tc, sc, fc);

            var fullName    = $"{tc?.FullyQualifiedTestClassName}.{fi.Title}.{si.Title}";
            var name        = si.Title;
            var nameForGuid = GetFullNameForGuid(tc, sc, fc);
            var guid        = nameForGuid.ToMd5HashGuid().ToString();
            var testRun     = new TestRunDto(guid, name, fullName)
            {
                Categories = si.Tags,
                TestInfo   =
                {
                    Start = DateTime.Now
                }
            };

            _logger.Debug($"TestRunDto created in GetTestRunOnScenarioStart: FullName = {fullName}, FullNameForGuid = {nameForGuid}");
            return(testRun);
        }