@@ -99,6 +99,7 @@ public async Task Denies_unknown_ContentType_header()
99
99
error . StatusCode . Should ( ) . Be ( HttpStatusCode . UnsupportedMediaType ) ;
100
100
error . Title . Should ( ) . Be ( "The specified Content-Type header value is not supported." ) ;
101
101
error . Detail . Should ( ) . Be ( "Please specify 'application/vnd.api+json' instead of 'text/html' for the Content-Type header value." ) ;
102
+ error . Source . Header . Should ( ) . Be ( "Content-Type" ) ;
102
103
}
103
104
104
105
[ Fact ]
@@ -192,6 +193,7 @@ public async Task Denies_JsonApi_ContentType_header_with_profile()
192
193
error . StatusCode . Should ( ) . Be ( HttpStatusCode . UnsupportedMediaType ) ;
193
194
error . Title . Should ( ) . Be ( "The specified Content-Type header value is not supported." ) ;
194
195
error . Detail . Should ( ) . Be ( $ "Please specify 'application/vnd.api+json' instead of '{ contentType } ' for the Content-Type header value.") ;
196
+ error . Source . Header . Should ( ) . Be ( "Content-Type" ) ;
195
197
}
196
198
197
199
[ Fact ]
@@ -225,6 +227,7 @@ public async Task Denies_JsonApi_ContentType_header_with_extension()
225
227
error . StatusCode . Should ( ) . Be ( HttpStatusCode . UnsupportedMediaType ) ;
226
228
error . Title . Should ( ) . Be ( "The specified Content-Type header value is not supported." ) ;
227
229
error . Detail . Should ( ) . Be ( $ "Please specify 'application/vnd.api+json' instead of '{ contentType } ' for the Content-Type header value.") ;
230
+ error . Source . Header . Should ( ) . Be ( "Content-Type" ) ;
228
231
}
229
232
230
233
[ Fact ]
@@ -258,6 +261,7 @@ public async Task Denies_JsonApi_ContentType_header_with_AtomicOperations_extens
258
261
error . StatusCode . Should ( ) . Be ( HttpStatusCode . UnsupportedMediaType ) ;
259
262
error . Title . Should ( ) . Be ( "The specified Content-Type header value is not supported." ) ;
260
263
error . Detail . Should ( ) . Be ( $ "Please specify 'application/vnd.api+json' instead of '{ contentType } ' for the Content-Type header value.") ;
264
+ error . Source . Header . Should ( ) . Be ( "Content-Type" ) ;
261
265
}
262
266
263
267
[ Fact ]
@@ -291,6 +295,7 @@ public async Task Denies_JsonApi_ContentType_header_with_CharSet()
291
295
error . StatusCode . Should ( ) . Be ( HttpStatusCode . UnsupportedMediaType ) ;
292
296
error . Title . Should ( ) . Be ( "The specified Content-Type header value is not supported." ) ;
293
297
error . Detail . Should ( ) . Be ( $ "Please specify 'application/vnd.api+json' instead of '{ contentType } ' for the Content-Type header value.") ;
298
+ error . Source . Header . Should ( ) . Be ( "Content-Type" ) ;
294
299
}
295
300
296
301
[ Fact ]
@@ -324,6 +329,7 @@ public async Task Denies_JsonApi_ContentType_header_with_unknown_parameter()
324
329
error . StatusCode . Should ( ) . Be ( HttpStatusCode . UnsupportedMediaType ) ;
325
330
error . Title . Should ( ) . Be ( "The specified Content-Type header value is not supported." ) ;
326
331
error . Detail . Should ( ) . Be ( $ "Please specify 'application/vnd.api+json' instead of '{ contentType } ' for the Content-Type header value.") ;
332
+ error . Source . Header . Should ( ) . Be ( "Content-Type" ) ;
327
333
}
328
334
329
335
[ Fact ]
@@ -367,6 +373,7 @@ public async Task Denies_JsonApi_ContentType_header_at_operations_endpoint()
367
373
error . StatusCode . Should ( ) . Be ( HttpStatusCode . UnsupportedMediaType ) ;
368
374
error . Title . Should ( ) . Be ( "The specified Content-Type header value is not supported." ) ;
369
375
error . Detail . Should ( ) . Be ( detail ) ;
376
+ error . Source . Header . Should ( ) . Be ( "Content-Type" ) ;
370
377
}
371
378
}
372
379
}
0 commit comments