diff --git a/tests/UKHO.ERPFacade.API.FunctionalTests/UKHO.ERPFacade.API.FunctionalTests.csproj b/tests/UKHO.ERPFacade.API.FunctionalTests/UKHO.ERPFacade.API.FunctionalTests.csproj
index 069dad7e..1a01661f 100644
--- a/tests/UKHO.ERPFacade.API.FunctionalTests/UKHO.ERPFacade.API.FunctionalTests.csproj
+++ b/tests/UKHO.ERPFacade.API.FunctionalTests/UKHO.ERPFacade.API.FunctionalTests.csproj
@@ -30,7 +30,7 @@
-
+
all
diff --git a/tests/UKHO.ERPFacade.API.UnitTests/Controllers/WebhookControllerTests.cs b/tests/UKHO.ERPFacade.API.UnitTests/Controllers/WebhookControllerTests.cs
index 4e3d41e2..0b8d6281 100644
--- a/tests/UKHO.ERPFacade.API.UnitTests/Controllers/WebhookControllerTests.cs
+++ b/tests/UKHO.ERPFacade.API.UnitTests/Controllers/WebhookControllerTests.cs
@@ -95,9 +95,9 @@ public void WhenValidHeaderRequestedInNewEncContentPublishedEventOptions_ThenWeb
&& call.GetArgument>>(2)!.ToDictionary(c => c.Key, c => c.Value)["{OriginalFormat}"].ToString() == "Completed processing the Options request for the New ENC Content Published event for webhook. | WebHook-Request-Origin : {webhookRequestOrigin}").MustHaveHappenedOnceExactly();
Assert.That(responseHeaders.ContainsKey("WebHook-Allowed-Rate"), Is.True);
- Assert.That(responseHeaders["WebHook-Allowed-Rate"], Is.EqualTo("*"));
+ Assert.That(responseHeaders["WebHook-Allowed-Rate"], Is.EqualTo((object?)"*"));
Assert.That(responseHeaders.ContainsKey("WebHook-Allowed-Origin"), Is.True);
- Assert.That(responseHeaders["WebHook-Allowed-Origin"], Is.EqualTo("test.com"));
+ Assert.That(responseHeaders["WebHook-Allowed-Origin"], Is.EqualTo((object?)"test.com"));
}
[Test]
@@ -192,9 +192,9 @@ public void WhenValidHeaderRequestedInRecordOfSalePublishedEventOptions_ThenWebh
&& call.GetArgument>>(2)!.ToDictionary(c => c.Key, c => c.Value)["{OriginalFormat}"].ToString() == "Completed processing the Options request for the Record of Sale Published event for webhook. | WebHook-Request-Origin : {webhookRequestOrigin}").MustHaveHappenedOnceExactly();
Assert.That(responseHeaders.ContainsKey("WebHook-Allowed-Rate"), Is.True);
- Assert.That(responseHeaders["WebHook-Allowed-Rate"], Is.EqualTo("*"));
+ Assert.That(responseHeaders["WebHook-Allowed-Rate"], Is.EqualTo((object?)"*"));
Assert.That(responseHeaders.ContainsKey("WebHook-Allowed-Origin"), Is.True);
- Assert.That(responseHeaders["WebHook-Allowed-Origin"], Is.EqualTo("test.com"));
+ Assert.That(responseHeaders["WebHook-Allowed-Origin"], Is.EqualTo((object?)"test.com"));
}
[Test]
@@ -289,9 +289,9 @@ public void WhenValidHeaderRequestedInLicenceUpdatedPublishedEventOptions_ThenWe
&& call.GetArgument>>(2)!.ToDictionary(c => c.Key, c => c.Value)["{OriginalFormat}"].ToString() == "Completed processing the Options request for the Licence updated event for webhook. | WebHook-Request-Origin : {webhookRequestOrigin}").MustHaveHappenedOnceExactly();
Assert.That(responseHeaders.ContainsKey("WebHook-Allowed-Rate"), Is.True);
- Assert.That(responseHeaders["WebHook-Allowed-Rate"], Is.EqualTo("*"));
+ Assert.That(responseHeaders["WebHook-Allowed-Rate"], Is.EqualTo((object?)"*"));
Assert.That(responseHeaders.ContainsKey("WebHook-Allowed-Origin"), Is.True);
- Assert.That(responseHeaders["WebHook-Allowed-Origin"], Is.EqualTo("test.com"));
+ Assert.That(responseHeaders["WebHook-Allowed-Origin"], Is.EqualTo((object?)"test.com"));
}
[Test]
diff --git a/tests/UKHO.ERPFacade.API.UnitTests/Filters/CorrelationIdMiddlewareTests.cs b/tests/UKHO.ERPFacade.API.UnitTests/Filters/CorrelationIdMiddlewareTests.cs
index 97b206dc..674f22cf 100644
--- a/tests/UKHO.ERPFacade.API.UnitTests/Filters/CorrelationIdMiddlewareTests.cs
+++ b/tests/UKHO.ERPFacade.API.UnitTests/Filters/CorrelationIdMiddlewareTests.cs
@@ -51,11 +51,11 @@ public async Task WhenCorrelationIdKeyExistsInRequestBody_ThenXCorrelationIdHead
A.CallTo(() => _fakeLogger.BeginScope(A>._)).MustHaveHappenedOnceExactly();
- Assert.That(_fakeHttpContext.Request.Headers.Count, Is.EqualTo(1));
- Assert.That(_fakeHttpContext.Request.Headers[CorrelationIdMiddleware.XCorrelationIdHeaderKey], Is.EqualTo(correlationId));
+ Assert.That(_fakeHttpContext.Request.Headers.Count, Is.EqualTo((object?)1));
+ Assert.That(_fakeHttpContext.Request.Headers[CorrelationIdMiddleware.XCorrelationIdHeaderKey], Is.EqualTo((object?)correlationId));
- Assert.That(_fakeHttpContext.Response.Headers.Count, Is.EqualTo(1));
- Assert.That(_fakeHttpContext.Response.Headers[CorrelationIdMiddleware.XCorrelationIdHeaderKey], Is.EqualTo(correlationId));
+ Assert.That(_fakeHttpContext.Response.Headers.Count, Is.EqualTo((object?)1));
+ Assert.That(_fakeHttpContext.Response.Headers[CorrelationIdMiddleware.XCorrelationIdHeaderKey], Is.EqualTo((object?)correlationId));
}
@@ -109,11 +109,11 @@ public async Task WhenCorrIdKeyExistsInRequestBody_ThenXCorrelationIdHeaderKeyAd
await _middleware.InvokeAsync(_fakeHttpContext);
- Assert.That(_fakeHttpContext.Request.Headers.Count, Is.EqualTo(1));
- Assert.That(_fakeHttpContext.Request.Headers[CorrelationIdMiddleware.XCorrelationIdHeaderKey], Is.EqualTo(correlationId));
+ Assert.That(_fakeHttpContext.Request.Headers.Count, Is.EqualTo((object?)1));
+ Assert.That(_fakeHttpContext.Request.Headers[CorrelationIdMiddleware.XCorrelationIdHeaderKey], Is.EqualTo((object?)correlationId));
- Assert.That(_fakeHttpContext.Response.Headers.Count, Is.EqualTo(1));
- Assert.That(_fakeHttpContext.Response.Headers[CorrelationIdMiddleware.XCorrelationIdHeaderKey], Is.EqualTo(correlationId));
+ Assert.That(_fakeHttpContext.Response.Headers.Count, Is.EqualTo((object?)1));
+ Assert.That(_fakeHttpContext.Response.Headers[CorrelationIdMiddleware.XCorrelationIdHeaderKey], Is.EqualTo((object?) correlationId));
}
}
}
diff --git a/tests/UKHO.ERPFacade.API.UnitTests/UKHO.ERPFacade.API.UnitTests.csproj b/tests/UKHO.ERPFacade.API.UnitTests/UKHO.ERPFacade.API.UnitTests.csproj
index 94a00447..cd79a806 100644
--- a/tests/UKHO.ERPFacade.API.UnitTests/UKHO.ERPFacade.API.UnitTests.csproj
+++ b/tests/UKHO.ERPFacade.API.UnitTests/UKHO.ERPFacade.API.UnitTests.csproj
@@ -19,7 +19,7 @@
-
+
all
diff --git a/tests/UKHO.ERPFacade.CleanUp.WebJob.UnitTests/UKHO.ERPFacade.CleanUp.WebJob.UnitTests.csproj b/tests/UKHO.ERPFacade.CleanUp.WebJob.UnitTests/UKHO.ERPFacade.CleanUp.WebJob.UnitTests.csproj
index cbe30307..d968f898 100644
--- a/tests/UKHO.ERPFacade.CleanUp.WebJob.UnitTests/UKHO.ERPFacade.CleanUp.WebJob.UnitTests.csproj
+++ b/tests/UKHO.ERPFacade.CleanUp.WebJob.UnitTests/UKHO.ERPFacade.CleanUp.WebJob.UnitTests.csproj
@@ -20,7 +20,7 @@
-
+
all
diff --git a/tests/UKHO.ERPFacade.Common.UnitTests/UKHO.ERPFacade.Common.UnitTests.csproj b/tests/UKHO.ERPFacade.Common.UnitTests/UKHO.ERPFacade.Common.UnitTests.csproj
index cd6de408..4c4cc343 100644
--- a/tests/UKHO.ERPFacade.Common.UnitTests/UKHO.ERPFacade.Common.UnitTests.csproj
+++ b/tests/UKHO.ERPFacade.Common.UnitTests/UKHO.ERPFacade.Common.UnitTests.csproj
@@ -21,7 +21,7 @@
-
+
all
@@ -32,7 +32,7 @@
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/tests/UKHO.ERPFacade.EventAggregation.WebJob.UnitTests/UKHO.ERPFacade.EventAggregation.WebJob.UnitTests.csproj b/tests/UKHO.ERPFacade.EventAggregation.WebJob.UnitTests/UKHO.ERPFacade.EventAggregation.WebJob.UnitTests.csproj
index 46d42ca4..9012fac7 100644
--- a/tests/UKHO.ERPFacade.EventAggregation.WebJob.UnitTests/UKHO.ERPFacade.EventAggregation.WebJob.UnitTests.csproj
+++ b/tests/UKHO.ERPFacade.EventAggregation.WebJob.UnitTests/UKHO.ERPFacade.EventAggregation.WebJob.UnitTests.csproj
@@ -24,7 +24,7 @@
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive