@@ -28,7 +28,7 @@ public async Task Getting_resource_collection_produces_expected_request()
28
28
wrapper . Request . ShouldNotBeNull ( ) ;
29
29
wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
30
30
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Get ) ;
31
- wrapper . Request . RequestUri . Should ( ) . Be ( HostPrefix + " flights") ;
31
+ wrapper . Request . RequestUri . Should ( ) . Be ( $ " { HostPrefix } flights") ;
32
32
wrapper . RequestBody . Should ( ) . BeNull ( ) ;
33
33
}
34
34
@@ -48,7 +48,7 @@ public async Task Getting_resource_produces_expected_request()
48
48
wrapper . Request . ShouldNotBeNull ( ) ;
49
49
wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
50
50
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Get ) ;
51
- wrapper . Request . RequestUri . Should ( ) . Be ( HostPrefix + $ " flights/{ flightId } ") ;
51
+ wrapper . Request . RequestUri . Should ( ) . Be ( $ " { HostPrefix } flights/{ flightId } ") ;
52
52
wrapper . RequestBody . Should ( ) . BeNull ( ) ;
53
53
}
54
54
@@ -93,7 +93,7 @@ public async Task Partial_posting_resource_with_selected_relationships_produces_
93
93
wrapper . Request . ShouldNotBeNull ( ) ;
94
94
wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
95
95
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Post ) ;
96
- wrapper . Request . RequestUri . Should ( ) . Be ( HostPrefix + " flights") ;
96
+ wrapper . Request . RequestUri . Should ( ) . Be ( $ " { HostPrefix } flights") ;
97
97
wrapper . Request . Content . Should ( ) . NotBeNull ( ) ;
98
98
wrapper . Request . Content ! . Headers . ContentType . Should ( ) . NotBeNull ( ) ;
99
99
wrapper . Request . Content ! . Headers . ContentType ! . ToString ( ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
@@ -137,7 +137,7 @@ public async Task Partial_posting_resource_produces_expected_request()
137
137
capitalLWithStroke
138
138
} ) ;
139
139
140
- string name = "anAirplaneName " + specialCharacters ;
140
+ string name = $ "anAirplaneName { specialCharacters } " ;
141
141
142
142
var requestDocument = new AirplanePostRequestDocument
143
143
{
@@ -163,7 +163,7 @@ public async Task Partial_posting_resource_produces_expected_request()
163
163
wrapper . Request . ShouldNotBeNull ( ) ;
164
164
wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
165
165
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Post ) ;
166
- wrapper . Request . RequestUri . Should ( ) . Be ( HostPrefix + " airplanes") ;
166
+ wrapper . Request . RequestUri . Should ( ) . Be ( $ " { HostPrefix } airplanes") ;
167
167
wrapper . Request . Content . Should ( ) . NotBeNull ( ) ;
168
168
wrapper . Request . Content ! . Headers . ContentType . Should ( ) . NotBeNull ( ) ;
169
169
wrapper . Request . Content ! . Headers . ContentType ! . ToString ( ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
@@ -214,7 +214,7 @@ public async Task Partial_patching_resource_produces_expected_request()
214
214
wrapper . Request . ShouldNotBeNull ( ) ;
215
215
wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
216
216
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Patch ) ;
217
- wrapper . Request . RequestUri . Should ( ) . Be ( HostPrefix + $ " airplanes/{ airplaneId } ") ;
217
+ wrapper . Request . RequestUri . Should ( ) . Be ( $ " { HostPrefix } airplanes/{ airplaneId } ") ;
218
218
wrapper . Request . Content . Should ( ) . NotBeNull ( ) ;
219
219
wrapper . Request . Content ! . Headers . ContentType . Should ( ) . NotBeNull ( ) ;
220
220
wrapper . Request . Content ! . Headers . ContentType ! . ToString ( ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
@@ -248,7 +248,7 @@ public async Task Deleting_resource_produces_expected_request()
248
248
// Assert
249
249
wrapper . Request . ShouldNotBeNull ( ) ;
250
250
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Delete ) ;
251
- wrapper . Request . RequestUri . Should ( ) . Be ( HostPrefix + $ " flights/{ flightId } ") ;
251
+ wrapper . Request . RequestUri . Should ( ) . Be ( $ " { HostPrefix } flights/{ flightId } ") ;
252
252
wrapper . RequestBody . Should ( ) . BeNull ( ) ;
253
253
}
254
254
@@ -268,7 +268,7 @@ public async Task Getting_secondary_resource_produces_expected_request()
268
268
wrapper . Request . ShouldNotBeNull ( ) ;
269
269
wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
270
270
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Get ) ;
271
- wrapper . Request . RequestUri . Should ( ) . Be ( HostPrefix + $ " flights/{ flightId } /purser") ;
271
+ wrapper . Request . RequestUri . Should ( ) . Be ( $ " { HostPrefix } flights/{ flightId } /purser") ;
272
272
wrapper . RequestBody . Should ( ) . BeNull ( ) ;
273
273
}
274
274
@@ -288,7 +288,7 @@ public async Task Getting_secondary_resources_produces_expected_request()
288
288
wrapper . Request . ShouldNotBeNull ( ) ;
289
289
wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
290
290
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Get ) ;
291
- wrapper . Request . RequestUri . Should ( ) . Be ( HostPrefix + $ " flights/{ flightId } /cabin-crew-members") ;
291
+ wrapper . Request . RequestUri . Should ( ) . Be ( $ " { HostPrefix } flights/{ flightId } /cabin-crew-members") ;
292
292
wrapper . RequestBody . Should ( ) . BeNull ( ) ;
293
293
}
294
294
@@ -308,7 +308,7 @@ public async Task Getting_ToOne_relationship_produces_expected_request()
308
308
wrapper . Request . ShouldNotBeNull ( ) ;
309
309
wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
310
310
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Get ) ;
311
- wrapper . Request . RequestUri . Should ( ) . Be ( HostPrefix + $ " flights/{ flightId } /relationships/purser") ;
311
+ wrapper . Request . RequestUri . Should ( ) . Be ( $ " { HostPrefix } flights/{ flightId } /relationships/purser") ;
312
312
wrapper . RequestBody . Should ( ) . BeNull ( ) ;
313
313
}
314
314
@@ -336,7 +336,7 @@ public async Task Patching_ToOne_relationship_produces_expected_request()
336
336
// Assert
337
337
wrapper . Request . ShouldNotBeNull ( ) ;
338
338
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Patch ) ;
339
- wrapper . Request . RequestUri . Should ( ) . Be ( HostPrefix + $ " flights/{ flightId } /relationships/purser") ;
339
+ wrapper . Request . RequestUri . Should ( ) . Be ( $ " { HostPrefix } flights/{ flightId } /relationships/purser") ;
340
340
wrapper . Request . Content . Should ( ) . NotBeNull ( ) ;
341
341
wrapper . Request . Content ! . Headers . ContentType . Should ( ) . NotBeNull ( ) ;
342
342
wrapper . Request . Content ! . Headers . ContentType ! . ToString ( ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
@@ -365,7 +365,7 @@ public async Task Getting_ToMany_relationship_produces_expected_request()
365
365
wrapper . Request . ShouldNotBeNull ( ) ;
366
366
wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
367
367
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Get ) ;
368
- wrapper . Request . RequestUri . Should ( ) . Be ( HostPrefix + $ " flights/{ flightId } /relationships/cabin-crew-members") ;
368
+ wrapper . Request . RequestUri . Should ( ) . Be ( $ " { HostPrefix } flights/{ flightId } /relationships/cabin-crew-members") ;
369
369
wrapper . RequestBody . Should ( ) . BeNull ( ) ;
370
370
}
371
371
@@ -401,7 +401,7 @@ public async Task Posting_ToMany_relationship_produces_expected_request()
401
401
// Assert
402
402
wrapper . Request . ShouldNotBeNull ( ) ;
403
403
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Post ) ;
404
- wrapper . Request . RequestUri . Should ( ) . Be ( HostPrefix + $ " flights/{ flightId } /relationships/cabin-crew-members") ;
404
+ wrapper . Request . RequestUri . Should ( ) . Be ( $ " { HostPrefix } flights/{ flightId } /relationships/cabin-crew-members") ;
405
405
wrapper . Request . Content . Should ( ) . NotBeNull ( ) ;
406
406
wrapper . Request . Content ! . Headers . ContentType . Should ( ) . NotBeNull ( ) ;
407
407
wrapper . Request . Content ! . Headers . ContentType ! . ToString ( ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
@@ -452,7 +452,7 @@ public async Task Patching_ToMany_relationship_produces_expected_request()
452
452
// Assert
453
453
wrapper . Request . ShouldNotBeNull ( ) ;
454
454
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Patch ) ;
455
- wrapper . Request . RequestUri . Should ( ) . Be ( HostPrefix + $ " flights/{ flightId } /relationships/cabin-crew-members") ;
455
+ wrapper . Request . RequestUri . Should ( ) . Be ( $ " { HostPrefix } flights/{ flightId } /relationships/cabin-crew-members") ;
456
456
wrapper . Request . Content . Should ( ) . NotBeNull ( ) ;
457
457
wrapper . Request . Content ! . Headers . ContentType . Should ( ) . NotBeNull ( ) ;
458
458
wrapper . Request . Content ! . Headers . ContentType ! . ToString ( ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
@@ -503,7 +503,7 @@ public async Task Deleting_ToMany_relationship_produces_expected_request()
503
503
// Assert
504
504
wrapper . Request . ShouldNotBeNull ( ) ;
505
505
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Delete ) ;
506
- wrapper . Request . RequestUri . Should ( ) . Be ( HostPrefix + $ " flights/{ flightId } /relationships/cabin-crew-members") ;
506
+ wrapper . Request . RequestUri . Should ( ) . Be ( $ " { HostPrefix } flights/{ flightId } /relationships/cabin-crew-members") ;
507
507
wrapper . Request . Content . Should ( ) . NotBeNull ( ) ;
508
508
wrapper . Request . Content ! . Headers . ContentType . Should ( ) . NotBeNull ( ) ;
509
509
wrapper . Request . Content ! . Headers . ContentType ! . ToString ( ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
0 commit comments