Skip to content

Commit

Permalink
Make DataService Scenario level
Browse files Browse the repository at this point in the history
  • Loading branch information
Romfos committed Dec 23, 2023
1 parent 3c04aaa commit fe0d93a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/AutoTests.Framework/Data/DataSpecflowHooks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<DataLoader>();
var data = dataLoader.Load(testRunnerManager.BindingAssemblies);
Expand Down

0 comments on commit fe0d93a

Please sign in to comment.