diff --git a/src/AutoTests.Framework/Data/DataSpecflowHooks.cs b/src/AutoTests.Framework/Data/DataSpecflowHooks.cs index 699c324..40a813c 100644 --- a/src/AutoTests.Framework/Data/DataSpecflowHooks.cs +++ b/src/AutoTests.Framework/Data/DataSpecflowHooks.cs @@ -4,10 +4,10 @@ namespace AutoTests.Framework.Data; [Binding] -public sealed class DataSpecflowHooks +public sealed class DataSpecflowHooks(ITestRunnerManager testRunnerManager, IObjectContainer objectContainer) { - [BeforeTestRun] - public static void BeforeTestRun(ITestRunnerManager testRunnerManager, IObjectContainer objectContainer) + [BeforeScenario] + public void BeforeTestRun() { var dataLoader = objectContainer.Resolve(); var data = dataLoader.Load(testRunnerManager.BindingAssemblies);