Skip to content

Commit

Permalink
Rename fixture that must be moved
Browse files Browse the repository at this point in the history
  • Loading branch information
dstenroejl committed Dec 18, 2024
1 parent 936e6b2 commit eb3cdb7
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ namespace Energinet.DataHub.ProcessManager.Client.Tests.Fixtures;
/// xUnit documentation of collection fixtures:
/// * https://xunit.net/docs/shared-context#collection-fixture
/// </summary>
[CollectionDefinition(nameof(ProcessManagerClientCollection))]
public class ProcessManagerClientCollection :
ICollectionFixture<ProcessManagerClientFixture>
[CollectionDefinition(nameof(ObsoleteProcessManagerClientCollection))]
public class ObsoleteProcessManagerClientCollection :
ICollectionFixture<ObsoleteProcessManagerClientFixture>
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@

namespace Energinet.DataHub.ProcessManager.Client.Tests.Fixtures;

public class ProcessManagerClientFixture : IAsyncLifetime
public class ObsoleteProcessManagerClientFixture : IAsyncLifetime
{
private const string TaskHubName = "ClientsTest01";

public ProcessManagerClientFixture()
public ObsoleteProcessManagerClientFixture()
{
DatabaseManager = new ProcessManagerDatabaseManager("ProcessManagerClientTests");
AzuriteManager = new AzuriteManager(useOAuth: true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ namespace Energinet.DataHub.ProcessManager.Client.Tests.Integration.BRS_021.Elec
/// Test case where we verify the Process Manager clients can be used to start a
/// calculation orchestration (with no input parameter) and monitor its status during its lifetime.
/// </summary>
[Collection(nameof(ProcessManagerClientCollection))]
[Collection(nameof(ObsoleteProcessManagerClientCollection))]
public class MonitorCalculationUsingClientsScenario : IAsyncLifetime
{
public MonitorCalculationUsingClientsScenario(
ProcessManagerClientFixture fixture,
ObsoleteProcessManagerClientFixture fixture,
ITestOutputHelper testOutputHelper)
{
Fixture = fixture;
Expand All @@ -52,7 +52,7 @@ public MonitorCalculationUsingClientsScenario(
ServiceProvider = services.BuildServiceProvider();
}

private ProcessManagerClientFixture Fixture { get; }
private ObsoleteProcessManagerClientFixture Fixture { get; }

private ServiceProvider ServiceProvider { get; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ namespace Energinet.DataHub.ProcessManager.Client.Tests.Integration.BRS_021.Forw
/// Test collection that verifies the Process Manager clients can be used to start a
/// forward metered data orchestration and monitor its status during its lifetime.
/// </summary>
[Collection(nameof(ProcessManagerClientCollection))]
[Collection(nameof(ObsoleteProcessManagerClientCollection))]
public class MonitorCalculationUsingClientsScenario : IAsyncLifetime
{
private readonly ProcessManagerClientFixture _fixture;
private readonly ObsoleteProcessManagerClientFixture _fixture;

public MonitorCalculationUsingClientsScenario(
ProcessManagerClientFixture fixture,
ObsoleteProcessManagerClientFixture fixture,
ITestOutputHelper testOutputHelper)
{
_fixture = fixture;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ namespace Energinet.DataHub.ProcessManager.Client.Tests.Integration.BRS_023_027.
/// Test case where we verify the Process Manager clients can be used to start a
/// calculation orchestration (with input parameter) and monitor its status during its lifetime.
/// </summary>
[Collection(nameof(ProcessManagerClientCollection))]
[Collection(nameof(ObsoleteProcessManagerClientCollection))]
public class MonitorCalculationUsingApiScenario : IAsyncLifetime
{
public MonitorCalculationUsingApiScenario(
ProcessManagerClientFixture fixture,
ObsoleteProcessManagerClientFixture fixture,
ITestOutputHelper testOutputHelper)
{
Fixture = fixture;
Fixture.SetTestOutputHelper(testOutputHelper);
}

private ProcessManagerClientFixture Fixture { get; }
private ObsoleteProcessManagerClientFixture Fixture { get; }

public Task InitializeAsync()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ namespace Energinet.DataHub.ProcessManager.Client.Tests.Integration.BRS_023_027.
/// Test case where we verify the Process Manager clients can be used to start a
/// calculation orchestration (with input parameter) and monitor its status during its lifetime.
/// </summary>
[Collection(nameof(ProcessManagerClientCollection))]
[Collection(nameof(ObsoleteProcessManagerClientCollection))]
public class MonitorCalculationUsingClientsScenario : IAsyncLifetime
{
public MonitorCalculationUsingClientsScenario(
ProcessManagerClientFixture fixture,
ObsoleteProcessManagerClientFixture fixture,
ITestOutputHelper testOutputHelper)
{
Fixture = fixture;
Expand All @@ -55,7 +55,7 @@ public MonitorCalculationUsingClientsScenario(
ServiceProvider = services.BuildServiceProvider();
}

private ProcessManagerClientFixture Fixture { get; }
private ObsoleteProcessManagerClientFixture Fixture { get; }

private ServiceProvider ServiceProvider { get; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ namespace Energinet.DataHub.ProcessManager.Client.Tests.Integration.BRS_026_028.
/// Test collection that verifies the Process Manager clients can be used to start a
/// request calculated energy time series orchestration and monitor its status during its lifetime.
/// </summary>
[Collection(nameof(ProcessManagerClientCollection))]
[Collection(nameof(ObsoleteProcessManagerClientCollection))]
public class RequestCalculatedEnergyTimeSeriesTests : IAsyncLifetime
{
private readonly ProcessManagerClientFixture _fixture;
private readonly ObsoleteProcessManagerClientFixture _fixture;

public RequestCalculatedEnergyTimeSeriesTests(
ProcessManagerClientFixture fixture,
ObsoleteProcessManagerClientFixture fixture,
ITestOutputHelper testOutputHelper)
{
_fixture = fixture;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,8 @@
</None>
</ItemGroup>

<ItemGroup>
<Folder Include="Integration\BRS_X01\Example\V1\" />
</ItemGroup>

</Project>

0 comments on commit eb3cdb7

Please sign in to comment.