@@ -27,7 +27,7 @@ public async Task Getting_resource_collection_produces_expected_request()
2727
2828 // Assert
2929 wrapper . Request . ShouldNotBeNull ( ) ;
30- wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
30+ wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( JsonApiMediaType . Default . ToString ( ) ) ;
3131 wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Get ) ;
3232 wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } flights") ;
3333 wrapper . RequestBody . Should ( ) . BeNull ( ) ;
@@ -47,7 +47,7 @@ public async Task Getting_resource_produces_expected_request()
4747
4848 // Assert
4949 wrapper . Request . ShouldNotBeNull ( ) ;
50- wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
50+ wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( JsonApiMediaType . Default . ToString ( ) ) ;
5151 wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Get ) ;
5252 wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } flights/{ flightId } ") ;
5353 wrapper . RequestBody . Should ( ) . BeNull ( ) ;
@@ -92,12 +92,12 @@ public async Task Partial_posting_resource_with_selected_relationships_produces_
9292
9393 // Assert
9494 wrapper . Request . ShouldNotBeNull ( ) ;
95- wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
95+ wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( JsonApiMediaType . Default . ToString ( ) ) ;
9696 wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Post ) ;
9797 wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } flights") ;
9898 wrapper . Request . Content . Should ( ) . NotBeNull ( ) ;
9999 wrapper . Request . Content ! . Headers . ContentType . Should ( ) . NotBeNull ( ) ;
100- wrapper . Request . Content ! . Headers . ContentType ! . ToString ( ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
100+ wrapper . Request . Content ! . Headers . ContentType ! . ToString ( ) . Should ( ) . Be ( JsonApiMediaType . Default . ToString ( ) ) ;
101101
102102 wrapper . RequestBody . Should ( ) . BeJson ( """
103103 {
@@ -164,12 +164,12 @@ public async Task Partial_posting_resource_produces_expected_request()
164164
165165 // Assert
166166 wrapper . Request . ShouldNotBeNull ( ) ;
167- wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
167+ wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( JsonApiMediaType . Default . ToString ( ) ) ;
168168 wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Post ) ;
169169 wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } airplanes") ;
170170 wrapper . Request . Content . Should ( ) . NotBeNull ( ) ;
171171 wrapper . Request . Content ! . Headers . ContentType . Should ( ) . NotBeNull ( ) ;
172- wrapper . Request . Content ! . Headers . ContentType ! . ToString ( ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
172+ wrapper . Request . Content ! . Headers . ContentType ! . ToString ( ) . Should ( ) . Be ( JsonApiMediaType . Default . ToString ( ) ) ;
173173
174174 wrapper . RequestBody . Should ( ) . BeJson ( $$ """
175175 {
@@ -217,12 +217,12 @@ public async Task Partial_patching_resource_produces_expected_request()
217217
218218 // Assert
219219 wrapper . Request . ShouldNotBeNull ( ) ;
220- wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
220+ wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( JsonApiMediaType . Default . ToString ( ) ) ;
221221 wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Patch ) ;
222222 wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } airplanes/{ airplaneId } ") ;
223223 wrapper . Request . Content . Should ( ) . NotBeNull ( ) ;
224224 wrapper . Request . Content ! . Headers . ContentType . Should ( ) . NotBeNull ( ) ;
225- wrapper . Request . Content ! . Headers . ContentType ! . ToString ( ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
225+ wrapper . Request . Content ! . Headers . ContentType ! . ToString ( ) . Should ( ) . Be ( JsonApiMediaType . Default . ToString ( ) ) ;
226226
227227 wrapper . RequestBody . Should ( ) . BeJson ( """
228228 {
@@ -273,7 +273,7 @@ public async Task Getting_secondary_resource_produces_expected_request()
273273
274274 // Assert
275275 wrapper . Request . ShouldNotBeNull ( ) ;
276- wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
276+ wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( JsonApiMediaType . Default . ToString ( ) ) ;
277277 wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Get ) ;
278278 wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } flights/{ flightId } /purser") ;
279279 wrapper . RequestBody . Should ( ) . BeNull ( ) ;
@@ -293,7 +293,7 @@ public async Task Getting_secondary_resources_produces_expected_request()
293293
294294 // Assert
295295 wrapper . Request . ShouldNotBeNull ( ) ;
296- wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
296+ wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( JsonApiMediaType . Default . ToString ( ) ) ;
297297 wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Get ) ;
298298 wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } flights/{ flightId } /cabin-crew-members") ;
299299 wrapper . RequestBody . Should ( ) . BeNull ( ) ;
@@ -313,7 +313,7 @@ public async Task Getting_ToOne_relationship_produces_expected_request()
313313
314314 // Assert
315315 wrapper . Request . ShouldNotBeNull ( ) ;
316- wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
316+ wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( JsonApiMediaType . Default . ToString ( ) ) ;
317317 wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Get ) ;
318318 wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } flights/{ flightId } /relationships/purser") ;
319319 wrapper . RequestBody . Should ( ) . BeNull ( ) ;
@@ -346,7 +346,7 @@ public async Task Patching_ToOne_relationship_produces_expected_request()
346346 wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } flights/{ flightId } /relationships/purser") ;
347347 wrapper . Request . Content . Should ( ) . NotBeNull ( ) ;
348348 wrapper . Request . Content ! . Headers . ContentType . Should ( ) . NotBeNull ( ) ;
349- wrapper . Request . Content ! . Headers . ContentType ! . ToString ( ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
349+ wrapper . Request . Content ! . Headers . ContentType ! . ToString ( ) . Should ( ) . Be ( JsonApiMediaType . Default . ToString ( ) ) ;
350350
351351 wrapper . RequestBody . Should ( ) . BeJson ( """
352352 {
@@ -372,7 +372,7 @@ public async Task Getting_ToMany_relationship_produces_expected_request()
372372
373373 // Assert
374374 wrapper . Request . ShouldNotBeNull ( ) ;
375- wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
375+ wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( JsonApiMediaType . Default . ToString ( ) ) ;
376376 wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Get ) ;
377377 wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } flights/{ flightId } /relationships/cabin-crew-members") ;
378378 wrapper . RequestBody . Should ( ) . BeNull ( ) ;
@@ -413,7 +413,7 @@ public async Task Posting_ToMany_relationship_produces_expected_request()
413413 wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } flights/{ flightId } /relationships/cabin-crew-members") ;
414414 wrapper . Request . Content . Should ( ) . NotBeNull ( ) ;
415415 wrapper . Request . Content ! . Headers . ContentType . Should ( ) . NotBeNull ( ) ;
416- wrapper . Request . Content ! . Headers . ContentType ! . ToString ( ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
416+ wrapper . Request . Content ! . Headers . ContentType ! . ToString ( ) . Should ( ) . Be ( JsonApiMediaType . Default . ToString ( ) ) ;
417417
418418 wrapper . RequestBody . Should ( ) . BeJson ( """
419419 {
@@ -466,7 +466,7 @@ public async Task Patching_ToMany_relationship_produces_expected_request()
466466 wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } flights/{ flightId } /relationships/cabin-crew-members") ;
467467 wrapper . Request . Content . Should ( ) . NotBeNull ( ) ;
468468 wrapper . Request . Content ! . Headers . ContentType . Should ( ) . NotBeNull ( ) ;
469- wrapper . Request . Content ! . Headers . ContentType ! . ToString ( ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
469+ wrapper . Request . Content ! . Headers . ContentType ! . ToString ( ) . Should ( ) . Be ( JsonApiMediaType . Default . ToString ( ) ) ;
470470
471471 wrapper . RequestBody . Should ( ) . BeJson ( """
472472 {
@@ -519,7 +519,7 @@ public async Task Deleting_ToMany_relationship_produces_expected_request()
519519 wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } flights/{ flightId } /relationships/cabin-crew-members") ;
520520 wrapper . Request . Content . Should ( ) . NotBeNull ( ) ;
521521 wrapper . Request . Content ! . Headers . ContentType . Should ( ) . NotBeNull ( ) ;
522- wrapper . Request . Content ! . Headers . ContentType ! . ToString ( ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
522+ wrapper . Request . Content ! . Headers . ContentType ! . ToString ( ) . Should ( ) . Be ( JsonApiMediaType . Default . ToString ( ) ) ;
523523
524524 wrapper . RequestBody . Should ( ) . BeJson ( """
525525 {
0 commit comments