diff --git a/src/Api/Api.csproj b/src/Api/Api.csproj index 7b89a594..f78f2d8a 100644 --- a/src/Api/Api.csproj +++ b/src/Api/Api.csproj @@ -1,4 +1,4 @@ - + net10.0 enable @@ -17,8 +17,10 @@ - - + + + + @@ -33,7 +35,7 @@ - + diff --git a/src/Data/Data.csproj b/src/Data/Data.csproj index 92c1219b..12134903 100644 --- a/src/Data/Data.csproj +++ b/src/Data/Data.csproj @@ -15,8 +15,8 @@ - - + + diff --git a/tests/Api.Client.Tests/Api.Client.Tests.csproj b/tests/Api.Client.Tests/Api.Client.Tests.csproj index 843bd9f5..a1883283 100644 --- a/tests/Api.Client.Tests/Api.Client.Tests.csproj +++ b/tests/Api.Client.Tests/Api.Client.Tests.csproj @@ -8,6 +8,10 @@ Defra.TradeImportsDataApi.Api.Client.Tests + + + + diff --git a/tests/Api.IntegrationTests/Api.IntegrationTests.csproj b/tests/Api.IntegrationTests/Api.IntegrationTests.csproj index a1a2104d..9a4cfd28 100644 --- a/tests/Api.IntegrationTests/Api.IntegrationTests.csproj +++ b/tests/Api.IntegrationTests/Api.IntegrationTests.csproj @@ -1,4 +1,4 @@ - + net10.0 enable @@ -12,7 +12,11 @@ - + + + + + diff --git a/tests/Api.IntegrationTests/Endpoints/SqsTestBase.cs b/tests/Api.IntegrationTests/Endpoints/SqsTestBase.cs index 1cdb8f5b..c83e5e43 100644 --- a/tests/Api.IntegrationTests/Endpoints/SqsTestBase.cs +++ b/tests/Api.IntegrationTests/Endpoints/SqsTestBase.cs @@ -49,8 +49,8 @@ protected async Task DrainAllMessages() await AsyncWaiter.WaitForAsync(async () => { var response = await ReceiveMessage(); - - foreach (var message in response.Messages) + var messages = response.Messages ?? []; + foreach (var message in messages) { testOutputHelper?.WriteLine("Drain message: {0} {1}", message.MessageId, message.Body); diff --git a/tests/Api.Tests/Api.Tests.csproj b/tests/Api.Tests/Api.Tests.csproj index 9885b23b..63a58570 100644 --- a/tests/Api.Tests/Api.Tests.csproj +++ b/tests/Api.Tests/Api.Tests.csproj @@ -8,6 +8,10 @@ Defra.TradeImportsDataApi.Api.Tests + + + + diff --git a/tests/Testing/Testing.csproj b/tests/Testing/Testing.csproj index 5d91efe0..e2eb4d47 100644 --- a/tests/Testing/Testing.csproj +++ b/tests/Testing/Testing.csproj @@ -8,7 +8,7 @@ - + @@ -20,7 +20,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive all - +