@@ -22,10 +22,10 @@ public async Task Getting_resource_collection_produces_expected_request()
22
22
{
23
23
// Arrange
24
24
using var wrapper = FakeHttpClientWrapper . Create ( HttpStatusCode . NoContent , null ) ;
25
- IOpenApiClient apiOpenApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
25
+ IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
26
26
27
27
// Act
28
- _ = await ApiResponse . TranslateAsync ( async ( ) => await apiOpenApiClient . GetFlightCollectionAsync ( ) ) ;
28
+ _ = await ApiResponse . TranslateAsync ( async ( ) => await openApiClient . GetFlightCollectionAsync ( ) ) ;
29
29
30
30
// Assert
31
31
wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
@@ -41,10 +41,10 @@ public async Task Getting_resource_produces_expected_request()
41
41
const string flightId = "ZvuH1" ;
42
42
43
43
using var wrapper = FakeHttpClientWrapper . Create ( HttpStatusCode . NoContent , null ) ;
44
- IOpenApiClient apiOpenApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
44
+ IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
45
45
46
46
// Act
47
- _ = await ApiResponse . TranslateAsync ( async ( ) => await apiOpenApiClient . GetFlightAsync ( flightId ) ) ;
47
+ _ = await ApiResponse . TranslateAsync ( async ( ) => await openApiClient . GetFlightAsync ( flightId ) ) ;
48
48
49
49
// Assert
50
50
wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
@@ -58,7 +58,7 @@ public async Task Partial_posting_resource_with_selected_relationships_produces_
58
58
{
59
59
// Arrange
60
60
using var wrapper = FakeHttpClientWrapper . Create ( HttpStatusCode . NoContent , null ) ;
61
- IOpenApiClient apiOpenApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
61
+ IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
62
62
63
63
var requestDocument = new FlightPostRequestDocument
64
64
{
@@ -73,7 +73,7 @@ public async Task Partial_posting_resource_with_selected_relationships_produces_
73
73
} ;
74
74
75
75
// Act
76
- _ = await ApiResponse . TranslateAsync ( async ( ) => await apiOpenApiClient . PostFlightAsync ( requestDocument ) ) ;
76
+ _ = await ApiResponse . TranslateAsync ( async ( ) => await openApiClient . PostFlightAsync ( requestDocument ) ) ;
77
77
78
78
// Assert
79
79
wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
@@ -163,7 +163,7 @@ public async Task Partial_patching_resource_produces_expected_request()
163
163
var lastServicedAt = 1 . January ( 2021 ) . At ( 15 , 23 , 5 , 33 ) . ToDateTimeOffset ( 4 . Hours ( ) ) ;
164
164
165
165
using var wrapper = FakeHttpClientWrapper . Create ( HttpStatusCode . NoContent , null ) ;
166
- IOpenApiClient apiOpenApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
166
+ IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
167
167
168
168
var requestDocument = new AirplanePatchRequestDocument
169
169
{
@@ -178,12 +178,12 @@ public async Task Partial_patching_resource_produces_expected_request()
178
178
}
179
179
} ;
180
180
181
- using ( apiOpenApiClient . RegisterAttributesForRequestDocument < AirplanePatchRequestDocument , AirplaneAttributesInPatchRequest > ( requestDocument ,
181
+ using ( openApiClient . RegisterAttributesForRequestDocument < AirplanePatchRequestDocument , AirplaneAttributesInPatchRequest > ( requestDocument ,
182
182
airplane => airplane . SerialNumber , airplane => airplane . LastServicedAt , airplane => airplane . IsInMaintenance ,
183
183
airplane => airplane . AirtimeInHours ) )
184
184
{
185
185
// Act
186
- _ = await ApiResponse . TranslateAsync ( async ( ) => await apiOpenApiClient . PatchAirplaneAsync ( airplaneId , requestDocument ) ) ;
186
+ _ = await ApiResponse . TranslateAsync ( async ( ) => await openApiClient . PatchAirplaneAsync ( airplaneId , requestDocument ) ) ;
187
187
}
188
188
189
189
// Assert
@@ -215,10 +215,10 @@ public async Task Deleting_resource_produces_expected_request()
215
215
const string flightId = "ZvuH1" ;
216
216
217
217
using var wrapper = FakeHttpClientWrapper . Create ( HttpStatusCode . NoContent , null ) ;
218
- IOpenApiClient apiOpenApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
218
+ IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
219
219
220
220
// Act
221
- await apiOpenApiClient . DeleteFlightAsync ( flightId ) ;
221
+ await openApiClient . DeleteFlightAsync ( flightId ) ;
222
222
223
223
// Assert
224
224
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Delete ) ;
@@ -233,10 +233,10 @@ public async Task Getting_secondary_resource_produces_expected_request()
233
233
const string flightId = "ZvuH1" ;
234
234
235
235
using var wrapper = FakeHttpClientWrapper . Create ( HttpStatusCode . NoContent , null ) ;
236
- IOpenApiClient apiOpenApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
236
+ IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
237
237
238
238
// Act
239
- _ = await ApiResponse . TranslateAsync ( async ( ) => await apiOpenApiClient . GetFlightOperatingAirplaneAsync ( flightId ) ) ;
239
+ _ = await ApiResponse . TranslateAsync ( async ( ) => await openApiClient . GetFlightOperatingAirplaneAsync ( flightId ) ) ;
240
240
241
241
// Assert
242
242
wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
@@ -252,10 +252,10 @@ public async Task Getting_secondary_resources_produces_expected_request()
252
252
const string flightId = "ZvuH1" ;
253
253
254
254
using var wrapper = FakeHttpClientWrapper . Create ( HttpStatusCode . NoContent , null ) ;
255
- IOpenApiClient apiOpenApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
255
+ IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
256
256
257
257
// Act
258
- _ = await ApiResponse . TranslateAsync ( async ( ) => await apiOpenApiClient . GetFlightCabinCrewMembersAsync ( flightId ) ) ;
258
+ _ = await ApiResponse . TranslateAsync ( async ( ) => await openApiClient . GetFlightCabinCrewMembersAsync ( flightId ) ) ;
259
259
260
260
// Assert
261
261
wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
@@ -271,10 +271,10 @@ public async Task Getting_ToOne_relationship_produces_expected_request()
271
271
const string flightId = "ZvuH1" ;
272
272
273
273
using var wrapper = FakeHttpClientWrapper . Create ( HttpStatusCode . NoContent , null ) ;
274
- IOpenApiClient apiOpenApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
274
+ IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
275
275
276
276
// Act
277
- _ = await ApiResponse . TranslateAsync ( async ( ) => await apiOpenApiClient . GetFlightOperatingAirplaneRelationshipAsync ( flightId ) ) ;
277
+ _ = await ApiResponse . TranslateAsync ( async ( ) => await openApiClient . GetFlightOperatingAirplaneRelationshipAsync ( flightId ) ) ;
278
278
279
279
// Assert
280
280
wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
@@ -290,7 +290,7 @@ public async Task Patching_ToOne_relationship_produces_expected_request()
290
290
const string flightId = "ZvuH1" ;
291
291
292
292
using var wrapper = FakeHttpClientWrapper . Create ( HttpStatusCode . NoContent , null ) ;
293
- IOpenApiClient apiOpenApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
293
+ IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
294
294
295
295
var requestDocument = new ToOneAirplaneRequestData
296
296
{
@@ -302,7 +302,7 @@ public async Task Patching_ToOne_relationship_produces_expected_request()
302
302
} ;
303
303
304
304
// Act
305
- await apiOpenApiClient . PatchFlightOperatingAirplaneRelationshipAsync ( flightId , requestDocument ) ;
305
+ await openApiClient . PatchFlightOperatingAirplaneRelationshipAsync ( flightId , requestDocument ) ;
306
306
307
307
// Assert
308
308
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Patch ) ;
@@ -326,10 +326,10 @@ public async Task Getting_ToMany_relationship_produces_expected_request()
326
326
const string flightId = "ZvuH1" ;
327
327
328
328
using var wrapper = FakeHttpClientWrapper . Create ( HttpStatusCode . NoContent , null ) ;
329
- IOpenApiClient apiOpenApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
329
+ IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
330
330
331
331
// Act
332
- _ = await ApiResponse . TranslateAsync ( async ( ) => await apiOpenApiClient . GetFlightCabinCrewMembersRelationshipAsync ( flightId ) ) ;
332
+ _ = await ApiResponse . TranslateAsync ( async ( ) => await openApiClient . GetFlightCabinCrewMembersRelationshipAsync ( flightId ) ) ;
333
333
334
334
// Assert
335
335
wrapper . Request . Headers . GetValue ( HeaderNames . Accept ) . Should ( ) . Be ( HeaderConstants . MediaType ) ;
@@ -345,7 +345,7 @@ public async Task Posting_ToMany_relationship_produces_expected_request()
345
345
const string flightId = "ZvuH1" ;
346
346
347
347
using var wrapper = FakeHttpClientWrapper . Create ( HttpStatusCode . NoContent , null ) ;
348
- IOpenApiClient apiOpenApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
348
+ IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
349
349
350
350
var requestDocument = new ToManyFlightAttendantRequestData
351
351
{
@@ -365,7 +365,7 @@ public async Task Posting_ToMany_relationship_produces_expected_request()
365
365
} ;
366
366
367
367
// Act
368
- await apiOpenApiClient . PostFlightCabinCrewMembersRelationshipAsync ( flightId , requestDocument ) ;
368
+ await openApiClient . PostFlightCabinCrewMembersRelationshipAsync ( flightId , requestDocument ) ;
369
369
370
370
// Assert
371
371
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Post ) ;
@@ -395,7 +395,7 @@ public async Task Patching_ToMany_relationship_produces_expected_request()
395
395
const string flightId = "ZvuH1" ;
396
396
397
397
using var wrapper = FakeHttpClientWrapper . Create ( HttpStatusCode . NoContent , null ) ;
398
- IOpenApiClient apiOpenApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
398
+ IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
399
399
400
400
var requestDocument = new ToManyFlightAttendantRequestData
401
401
{
@@ -415,7 +415,7 @@ public async Task Patching_ToMany_relationship_produces_expected_request()
415
415
} ;
416
416
417
417
// Act
418
- await apiOpenApiClient . PatchFlightCabinCrewMembersRelationshipAsync ( flightId , requestDocument ) ;
418
+ await openApiClient . PatchFlightCabinCrewMembersRelationshipAsync ( flightId , requestDocument ) ;
419
419
420
420
// Assert
421
421
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Patch ) ;
@@ -445,7 +445,7 @@ public async Task Deleting_ToMany_relationship_produces_expected_request()
445
445
const string flightId = "ZvuH1" ;
446
446
447
447
using var wrapper = FakeHttpClientWrapper . Create ( HttpStatusCode . NoContent , null ) ;
448
- IOpenApiClient apiOpenApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
448
+ IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
449
449
450
450
var requestDocument = new ToManyFlightAttendantRequestData
451
451
{
@@ -465,7 +465,7 @@ public async Task Deleting_ToMany_relationship_produces_expected_request()
465
465
} ;
466
466
467
467
// Act
468
- await apiOpenApiClient . DeleteFlightCabinCrewMembersRelationshipAsync ( flightId , requestDocument ) ;
468
+ await openApiClient . DeleteFlightCabinCrewMembersRelationshipAsync ( flightId , requestDocument ) ;
469
469
470
470
// Assert
471
471
wrapper . Request . Method . Should ( ) . Be ( HttpMethod . Delete ) ;
0 commit comments