Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dstenroejl committed Dec 18, 2024
1 parent a0e78e6 commit 4271eec
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 33 deletions.
20 changes: 0 additions & 20 deletions source/ProcessManager.Client.Tests/DisableTestParallelization.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;

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

public static class ServiceCollectionExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
using Energinet.DataHub.ProcessManager.Abstractions.Api.Model.OrchestrationInstance;
using Energinet.DataHub.ProcessManager.Client.Extensions.DependencyInjection;
using Energinet.DataHub.ProcessManager.Client.Extensions.Options;
using Energinet.DataHub.ProcessManager.Client.Tests.Extensions;
using Energinet.DataHub.ProcessManager.Client.Tests.Fixtures;
using Energinet.DataHub.ProcessManager.Client.Tests.Fixtures.Extensions;
using FluentAssertions;
using Microsoft.Extensions.DependencyInjection;
using Xunit.Abstractions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
using Energinet.DataHub.ProcessManager.Client.Extensions.DependencyInjection;
using Energinet.DataHub.ProcessManager.Client.Extensions.Options;
using Energinet.DataHub.ProcessManager.Client.Tests.Fixtures;
using Energinet.DataHub.ProcessManager.Client.Tests.Fixtures.Extensions;
using FluentAssertions;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Xunit.Abstractions;

Expand All @@ -41,13 +41,13 @@ public MonitorNoInputExampleUsingClientScenario(
Fixture.SetTestOutputHelper(testOutputHelper);

var services = new ServiceCollection();
services.AddScoped(_ => CreateInMemoryConfigurations(new Dictionary<string, string?>()
services.AddInMemoryConfiguration(new Dictionary<string, string?>
{
[$"{ProcessManagerHttpClientsOptions.SectionName}:{nameof(ProcessManagerHttpClientsOptions.GeneralApiBaseAddress)}"]
= Fixture.ProcessManagerAppManager.AppHostManager.HttpClient.BaseAddress!.ToString(),
[$"{ProcessManagerHttpClientsOptions.SectionName}:{nameof(ProcessManagerHttpClientsOptions.OrchestrationsApiBaseAddress)}"]
= Fixture.ExampleOrchestrationsAppManager.AppHostManager.HttpClient.BaseAddress!.ToString(),
}));
});
services.AddProcessManagerHttpClients();
ServiceProvider = services.BuildServiceProvider();
}
Expand Down Expand Up @@ -123,11 +123,4 @@ public async Task NoInputExampleOrchestration_WhenStarted_CanMonitorLifecycle()

orchestrationInstancesGeneralSearch.Should().Contain(x => x.Id == orchestrationInstanceId);
}

private IConfiguration CreateInMemoryConfigurations(Dictionary<string, string?> configurations)
{
return new ConfigurationBuilder()
.AddInMemoryCollection(configurations)
.Build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Energinet.DataHub.Core.DurableFunctionApp.TestCommon" Version="7.1.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
Expand Down

0 comments on commit 4271eec

Please sign in to comment.