@@ -27,7 +27,7 @@ public async Task Getting_resource_collection_produces_expected_request()
27
27
28
28
// Assert
29
29
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 ( ) ) ;
31
31
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Get ) ;
32
32
wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } flights") ;
33
33
wrapper . RequestBody . Should ( ) . BeNull ( ) ;
@@ -47,7 +47,7 @@ public async Task Getting_resource_produces_expected_request()
47
47
48
48
// Assert
49
49
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 ( ) ) ;
51
51
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Get ) ;
52
52
wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } flights/{ flightId } ") ;
53
53
wrapper . RequestBody . Should ( ) . BeNull ( ) ;
@@ -92,12 +92,12 @@ public async Task Partial_posting_resource_with_selected_relationships_produces_
92
92
93
93
// Assert
94
94
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 ( ) ) ;
96
96
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Post ) ;
97
97
wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } flights") ;
98
98
wrapper . Request . Content . Should ( ) . NotBeNull ( ) ;
99
99
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 ( ) ) ;
101
101
102
102
wrapper . RequestBody . Should ( ) . BeJson ( """
103
103
{
@@ -164,12 +164,12 @@ public async Task Partial_posting_resource_produces_expected_request()
164
164
165
165
// Assert
166
166
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 ( ) ) ;
168
168
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Post ) ;
169
169
wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } airplanes") ;
170
170
wrapper . Request . Content . Should ( ) . NotBeNull ( ) ;
171
171
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 ( ) ) ;
173
173
174
174
wrapper . RequestBody . Should ( ) . BeJson ( $$ """
175
175
{
@@ -217,12 +217,12 @@ public async Task Partial_patching_resource_produces_expected_request()
217
217
218
218
// Assert
219
219
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 ( ) ) ;
221
221
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Patch ) ;
222
222
wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } airplanes/{ airplaneId } ") ;
223
223
wrapper . Request . Content . Should ( ) . NotBeNull ( ) ;
224
224
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 ( ) ) ;
226
226
227
227
wrapper . RequestBody . Should ( ) . BeJson ( """
228
228
{
@@ -273,7 +273,7 @@ public async Task Getting_secondary_resource_produces_expected_request()
273
273
274
274
// Assert
275
275
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 ( ) ) ;
277
277
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Get ) ;
278
278
wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } flights/{ flightId } /purser") ;
279
279
wrapper . RequestBody . Should ( ) . BeNull ( ) ;
@@ -293,7 +293,7 @@ public async Task Getting_secondary_resources_produces_expected_request()
293
293
294
294
// Assert
295
295
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 ( ) ) ;
297
297
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Get ) ;
298
298
wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } flights/{ flightId } /cabin-crew-members") ;
299
299
wrapper . RequestBody . Should ( ) . BeNull ( ) ;
@@ -313,7 +313,7 @@ public async Task Getting_ToOne_relationship_produces_expected_request()
313
313
314
314
// Assert
315
315
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 ( ) ) ;
317
317
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Get ) ;
318
318
wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } flights/{ flightId } /relationships/purser") ;
319
319
wrapper . RequestBody . Should ( ) . BeNull ( ) ;
@@ -346,7 +346,7 @@ public async Task Patching_ToOne_relationship_produces_expected_request()
346
346
wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } flights/{ flightId } /relationships/purser") ;
347
347
wrapper . Request . Content . Should ( ) . NotBeNull ( ) ;
348
348
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 ( ) ) ;
350
350
351
351
wrapper . RequestBody . Should ( ) . BeJson ( """
352
352
{
@@ -372,7 +372,7 @@ public async Task Getting_ToMany_relationship_produces_expected_request()
372
372
373
373
// Assert
374
374
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 ( ) ) ;
376
376
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Get ) ;
377
377
wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } flights/{ flightId } /relationships/cabin-crew-members") ;
378
378
wrapper . RequestBody . Should ( ) . BeNull ( ) ;
@@ -413,7 +413,7 @@ public async Task Posting_ToMany_relationship_produces_expected_request()
413
413
wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } flights/{ flightId } /relationships/cabin-crew-members") ;
414
414
wrapper . Request . Content . Should ( ) . NotBeNull ( ) ;
415
415
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 ( ) ) ;
417
417
418
418
wrapper . RequestBody . Should ( ) . BeJson ( """
419
419
{
@@ -466,7 +466,7 @@ public async Task Patching_ToMany_relationship_produces_expected_request()
466
466
wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } flights/{ flightId } /relationships/cabin-crew-members") ;
467
467
wrapper . Request . Content . Should ( ) . NotBeNull ( ) ;
468
468
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 ( ) ) ;
470
470
471
471
wrapper . RequestBody . Should ( ) . BeJson ( """
472
472
{
@@ -519,7 +519,7 @@ public async Task Deleting_ToMany_relationship_produces_expected_request()
519
519
wrapper . Request . RequestUri . Should ( ) . Be ( $ "{ HostPrefix } flights/{ flightId } /relationships/cabin-crew-members") ;
520
520
wrapper . Request . Content . Should ( ) . NotBeNull ( ) ;
521
521
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 ( ) ) ;
523
523
524
524
wrapper . RequestBody . Should ( ) . BeJson ( """
525
525
{
0 commit comments