diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ba6e1d3..e1d28de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,10 +15,10 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 - - name: Setup dotnet 8.0 + - name: Setup dotnet 10.0 uses: actions/setup-dotnet@v1 with: - dotnet-version: '8.0.x' + dotnet-version: '10.0.x' - name: Build and Test run: ./Build.ps1 shell: pwsh diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 42bf571..2a6058e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,10 +12,10 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 - - name: Setup dotnet 8.0 + - name: Setup dotnet 10.0 uses: actions/setup-dotnet@v1 with: - dotnet-version: '8.0.x' + dotnet-version: '10.0.x' - name: Build and Test run: ./Build.ps1 shell: pwsh diff --git a/src/NServiceBus.Extensions.IntegrationTesting/EndpointConfigurationExtensions.cs b/src/NServiceBus.Extensions.IntegrationTesting/EndpointConfigurationExtensions.cs index 71ff6ed..2fa9b9b 100644 --- a/src/NServiceBus.Extensions.IntegrationTesting/EndpointConfigurationExtensions.cs +++ b/src/NServiceBus.Extensions.IntegrationTesting/EndpointConfigurationExtensions.cs @@ -1,5 +1,4 @@ using System; -using NServiceBus.Features; namespace NServiceBus.Extensions.IntegrationTesting { @@ -36,7 +35,6 @@ public static EndpointConfiguration ConfigureTestEndpoint(this EndpointConfigura endpoint.PurgeOnStartup(true); endpoint.DisableFeature(); - endpoint.EnableOpenTelemetry(); endpoint.Pipeline.Register( new AttachIncomingLogicalMessageContextToActivity(), diff --git a/src/NServiceBus.Extensions.IntegrationTesting/NServiceBus.Extensions.IntegrationTesting.csproj b/src/NServiceBus.Extensions.IntegrationTesting/NServiceBus.Extensions.IntegrationTesting.csproj index 9a028fb..22aa36d 100644 --- a/src/NServiceBus.Extensions.IntegrationTesting/NServiceBus.Extensions.IntegrationTesting.csproj +++ b/src/NServiceBus.Extensions.IntegrationTesting/NServiceBus.Extensions.IntegrationTesting.csproj @@ -1,7 +1,7 @@  - net8.0 + net10.0 Jimmy Bogard Jimmy Bogard Apache-2.0 @@ -16,9 +16,9 @@ - - - + + + diff --git a/tests/NServiceBus.Extensions.IntegrationTesting.Tests/HostApplicationFactoryTests.cs b/tests/NServiceBus.Extensions.IntegrationTesting.Tests/HostApplicationFactoryTests.cs index a6fb9e9..8b9a8cd 100644 --- a/tests/NServiceBus.Extensions.IntegrationTesting.Tests/HostApplicationFactoryTests.cs +++ b/tests/NServiceBus.Extensions.IntegrationTesting.Tests/HostApplicationFactoryTests.cs @@ -152,7 +152,8 @@ public class SagaExample : Saga, protected override void ConfigureHowToFindSaga(SagaPropertyMapper mapper) { //note that mapping on a string is the worst example ever - mapper.ConfigureMapping(m => m.Message).ToSaga(s => s.Message); + mapper.MapSaga(saga => saga.Message) + .ToMessage(m => m.Message); } public Task Handle(StartSagaMessage message, IMessageHandlerContext context) diff --git a/tests/NServiceBus.Extensions.IntegrationTesting.Tests/NServiceBus.Extensions.IntegrationTesting.Tests.csproj b/tests/NServiceBus.Extensions.IntegrationTesting.Tests/NServiceBus.Extensions.IntegrationTesting.Tests.csproj index 96c6a70..221c912 100644 --- a/tests/NServiceBus.Extensions.IntegrationTesting.Tests/NServiceBus.Extensions.IntegrationTesting.Tests.csproj +++ b/tests/NServiceBus.Extensions.IntegrationTesting.Tests/NServiceBus.Extensions.IntegrationTesting.Tests.csproj @@ -1,18 +1,18 @@  - net8.0 + net10.0 false - - - + + + - + all runtime; build; native; contentfiles; analyzers; buildtransitive