Skip to content

Commit

Permalink
Migrate to Reqnroll v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Romfos committed May 22, 2024
1 parent d1ee450 commit b51b955
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using AutoTests.Framework.Components.Application;
using AutoTests.Framework.Components.Services;
using BoDi;
using Reqnroll;
using Reqnroll.BoDi;

namespace AutoTests.Framework.Components;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using AutoTests.Framework.Components.Application;
using AutoTests.Framework.Components.Attributes;
using BoDi;
using Reqnroll.BoDi;
using System.Collections.Concurrent;
using System.Reflection;
using System.Text.Json;
Expand Down
6 changes: 3 additions & 3 deletions src/AutoTests.Framework.Playwright/PlaywrightHooks.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using BoDi;
using Microsoft.Playwright;
using Reqnroll;
using Reqnroll.BoDi;

namespace AutoTests.Framework.Playwright;

Expand All @@ -24,13 +24,13 @@ public static async Task BeforeTestRun(ObjectContainer objectContainer)
else
{
playwright = await Microsoft.Playwright.Playwright.CreateAsync();
objectContainer.BaseContainer.RegisterInstanceAs(playwright);
objectContainer.RegisterInstanceAs(playwright);
}

if (!objectContainer.IsRegistered<IBrowser>())
{
var browser = await playwright.Chromium.LaunchAsync(browserTypeLaunchOptions);
objectContainer.BaseContainer.RegisterInstanceAs(browser);
objectContainer.RegisterInstanceAs(browser);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<ItemGroup>
<PackageReference Include="MSTest" Version="3.3.1" />
<PackageReference Include="Reqnroll.MsTest" Version="1.0.1" />
<PackageReference Include="Reqnroll.MsTest" Version="2.0.0" />
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/AutoTests.Framework.sln
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.4.33110.190
Expand Down Expand Up @@ -68,3 +67,4 @@ Global
SolutionGuid = {8CC06E25-60A1-41E5-9BA3-4BCF6254BC1C}
EndGlobalSection
EndGlobal
bal
2 changes: 1 addition & 1 deletion src/AutoTests.Framework/AutoTests.Framework.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Import Project="../Package.props" />

<ItemGroup>
<PackageReference Include="Reqnroll" Version="1.0.1" />
<PackageReference Include="Reqnroll" Version="2.0.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.9.2" />
</ItemGroup>

Expand Down
4 changes: 2 additions & 2 deletions src/AutoTests.Framework/Data/DataReqnrollHooks.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using BoDi;
using Reqnroll;
using Reqnroll.BoDi;

namespace AutoTests.Framework.Data;

Expand All @@ -12,6 +12,6 @@ public static void BeforeTestRun(ITestRunnerManager testRunnerManager, ObjectCon
var dataLoader = objectContainer.Resolve<DataLoader>();
var data = dataLoader.Load(testRunnerManager.BindingAssemblies);
var dataService = new DataService(data);
objectContainer.BaseContainer.RegisterInstanceAs(dataService);
objectContainer.RegisterInstanceAs(dataService);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using BoDi;
using Reqnroll;
using Reqnroll.BoDi;

namespace AutoTests.Framework.Expressions;

Expand All @@ -15,6 +15,6 @@ public ArgumentExpression TransformExpression(string text)
[BeforeTestRun(Order = int.MinValue)]
public static void BeforeTestRun(ObjectContainer objectContainer)
{
objectContainer.BaseContainer.RegisterTypeAs<RoslynCSharpExpressionService, IExpressionService>();
objectContainer.RegisterTypeAs<RoslynCSharpExpressionService, IExpressionService>();
}
}
2 changes: 1 addition & 1 deletion src/Bootstrap.Tests/Bootstrap.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<ItemGroup>
<PackageReference Include="MSTest" Version="3.3.1" />
<PackageReference Include="Reqnroll.MsTest" Version="1.0.1" />
<PackageReference Include="Reqnroll.MsTest" Version="2.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit b51b955

Please sign in to comment.