You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/JsonApiDotNetCoreTests/IntegrationTests/ContentNegotiation/CustomExtensions/CustomExtensionsAcceptHeaderTests.cs
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,9 @@ public CustomExtensionsAcceptHeaderTests(IntegrationTestContext<TestableStartup<
Copy file name to clipboardExpand all lines: test/JsonApiDotNetCoreTests/IntegrationTests/ContentNegotiation/CustomExtensions/CustomExtensionsContentTypeTests.cs
+150-5Lines changed: 150 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,9 @@ public CustomExtensionsContentTypeTests(IntegrationTestContext<TestableStartup<P
46
46
ServiceDescriptor.Singleton<TimeProvider>(newFrozenTimeProvider(CurrentTime,TimeZoneInfo.FindSystemTimeZoneById("Tokyo Standard Time")))));
@@ -239,8 +330,61 @@ public async Task Denies_JsonApi_ContentType_header_with_ServerTime_at_operation
239
330
240
331
responseDocument.Errors.Should().HaveCount(1);
241
332
242
-
stringdetail=
243
-
$"Use '{JsonApiMediaType.AtomicOperations}' or '{ServerTimeMediaTypes.AtomicOperationsWithServerTime}' instead of '{contentType}' for the Content-Type header value.";
333
+
#pragma warning disable CS0618// Type or member is obsolete
334
+
stringdetail=$"Use '{JsonApiMediaType.AtomicOperations}' or '{ServerTimeMediaTypes.AtomicOperationsWithServerTime}' or "+
335
+
$"'{JsonApiMediaType.RelaxedAtomicOperations}' or '{ServerTimeMediaTypes.RelaxedAtomicOperationsWithRelaxedServerTime}' "+
336
+
$"instead of '{contentType}' for the Content-Type header value.";
337
+
#pragma warning restore CS0618// Type or member is obsolete
Copy file name to clipboardExpand all lines: test/JsonApiDotNetCoreTests/IntegrationTests/ContentNegotiation/CustomExtensions/ServerTimeContentNegotiator.cs
Copy file name to clipboardExpand all lines: test/JsonApiDotNetCoreTests/IntegrationTests/ContentNegotiation/CustomExtensions/ServerTimeMediaTypeExtension.cs
Copy file name to clipboardExpand all lines: test/JsonApiDotNetCoreTests/IntegrationTests/ContentNegotiation/CustomExtensions/ServerTimeResponseMeta.cs
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,10 @@ internal sealed class ServerTimeResponseMeta(IJsonApiRequest request, RequestDoc
0 commit comments