@@ -31,13 +31,13 @@ public async Task Disposed_registration_does_not_affect_request()
31
31
using ( apiClient . WithPartialAttributeSerialization < AirplanePatchRequestDocument , AirplaneAttributesInPatchRequest > ( requestDocument ,
32
32
airplane => airplane . AirtimeInHours ) )
33
33
{
34
- _ = await ApiResponse . TranslateAsync ( ( ) => apiClient . PatchAirplaneAsync ( airplaneId , null , requestDocument ) ) ;
34
+ _ = await ApiResponse . TranslateAsync ( async ( ) => await apiClient . PatchAirplaneAsync ( airplaneId , null , requestDocument ) ) ;
35
35
}
36
36
37
37
wrapper . ChangeResponse ( HttpStatusCode . NoContent , null ) ;
38
38
39
39
// Act
40
- _ = await ApiResponse . TranslateAsync ( ( ) => apiClient . PatchAirplaneAsync ( airplaneId , null , requestDocument ) ) ;
40
+ _ = await ApiResponse . TranslateAsync ( async ( ) => await apiClient . PatchAirplaneAsync ( airplaneId , null , requestDocument ) ) ;
41
41
42
42
// Assert
43
43
wrapper . RequestBody . Should ( ) . BeJson ( $$ """
@@ -78,14 +78,14 @@ public async Task Registration_can_be_used_for_multiple_requests()
78
78
using ( apiClient . WithPartialAttributeSerialization < AirplanePatchRequestDocument , AirplaneAttributesInPatchRequest > ( requestDocument ,
79
79
airplane => airplane . AirtimeInHours ) )
80
80
{
81
- _ = await ApiResponse . TranslateAsync ( ( ) => apiClient . PatchAirplaneAsync ( airplaneId , null , requestDocument ) ) ;
81
+ _ = await ApiResponse . TranslateAsync ( async ( ) => await apiClient . PatchAirplaneAsync ( airplaneId , null , requestDocument ) ) ;
82
82
83
83
wrapper . ChangeResponse ( HttpStatusCode . NoContent , null ) ;
84
84
85
85
requestDocument . Data . Attributes . AirtimeInHours = null ;
86
86
87
87
// Act
88
- _ = await ApiResponse . TranslateAsync ( ( ) => apiClient . PatchAirplaneAsync ( airplaneId , null , requestDocument ) ) ;
88
+ _ = await ApiResponse . TranslateAsync ( async ( ) => await apiClient . PatchAirplaneAsync ( airplaneId , null , requestDocument ) ) ;
89
89
}
90
90
91
91
// Assert
@@ -142,7 +142,7 @@ public async Task Request_is_unaffected_by_registration_for_different_document_o
142
142
}
143
143
144
144
// Act
145
- _ = await ApiResponse . TranslateAsync ( ( ) => apiClient . PatchAirplaneAsync ( airplaneId2 , null , requestDocument2 ) ) ;
145
+ _ = await ApiResponse . TranslateAsync ( async ( ) => await apiClient . PatchAirplaneAsync ( airplaneId2 , null , requestDocument2 ) ) ;
146
146
}
147
147
148
148
// Assert
@@ -187,7 +187,7 @@ public async Task Attribute_values_can_be_changed_after_registration()
187
187
requestDocument . Data . Attributes . IsInMaintenance = false ;
188
188
189
189
// Act
190
- _ = await ApiResponse . TranslateAsync ( ( ) => apiClient . PatchAirplaneAsync ( airplaneId , null , requestDocument ) ) ;
190
+ _ = await ApiResponse . TranslateAsync ( async ( ) => await apiClient . PatchAirplaneAsync ( airplaneId , null , requestDocument ) ) ;
191
191
}
192
192
193
193
// Assert
@@ -239,7 +239,7 @@ public async Task Registration_is_unaffected_by_successive_registration_for_docu
239
239
airplane => airplane . AirtimeInHours ) )
240
240
{
241
241
// Act
242
- _ = await ApiResponse . TranslateAsync ( ( ) => apiClient . PatchAirplaneAsync ( airplaneId1 , null , requestDocument1 ) ) ;
242
+ _ = await ApiResponse . TranslateAsync ( async ( ) => await apiClient . PatchAirplaneAsync ( airplaneId1 , null , requestDocument1 ) ) ;
243
243
}
244
244
}
245
245
@@ -279,7 +279,7 @@ public async Task Registration_is_unaffected_by_preceding_disposed_registration_
279
279
using ( apiClient . WithPartialAttributeSerialization < AirplanePatchRequestDocument , AirplaneAttributesInPatchRequest > ( requestDocument1 ,
280
280
airplane => airplane . AirtimeInHours ) )
281
281
{
282
- _ = await ApiResponse . TranslateAsync ( ( ) => apiClient . PatchAirplaneAsync ( airplaneId1 , null , requestDocument1 ) ) ;
282
+ _ = await ApiResponse . TranslateAsync ( async ( ) => await apiClient . PatchAirplaneAsync ( airplaneId1 , null , requestDocument1 ) ) ;
283
283
}
284
284
285
285
const string airplaneId2 = "DJy1u" ;
@@ -303,7 +303,7 @@ public async Task Registration_is_unaffected_by_preceding_disposed_registration_
303
303
airplane => airplane . SerialNumber ) )
304
304
{
305
305
// Act
306
- _ = await ApiResponse . TranslateAsync ( ( ) => apiClient . PatchAirplaneAsync ( airplaneId2 , null , requestDocument2 ) ) ;
306
+ _ = await ApiResponse . TranslateAsync ( async ( ) => await apiClient . PatchAirplaneAsync ( airplaneId2 , null , requestDocument2 ) ) ;
307
307
}
308
308
309
309
// Assert
@@ -343,7 +343,7 @@ public async Task Registration_is_unaffected_by_preceding_disposed_registration_
343
343
using ( apiClient . WithPartialAttributeSerialization < AirplanePostRequestDocument , AirplaneAttributesInPostRequest > ( requestDocument1 ,
344
344
airplane => airplane . AirtimeInHours ) )
345
345
{
346
- _ = await ApiResponse . TranslateAsync ( ( ) => apiClient . PostAirplaneAsync ( null , requestDocument1 ) ) ;
346
+ _ = await ApiResponse . TranslateAsync ( async ( ) => await apiClient . PostAirplaneAsync ( null , requestDocument1 ) ) ;
347
347
}
348
348
349
349
const string airplaneId = "DJy1u" ;
@@ -367,7 +367,7 @@ public async Task Registration_is_unaffected_by_preceding_disposed_registration_
367
367
airplane => airplane . SerialNumber ) )
368
368
{
369
369
// Act
370
- _ = await ApiResponse . TranslateAsync ( ( ) => apiClient . PatchAirplaneAsync ( airplaneId , null , requestDocument2 ) ) ;
370
+ _ = await ApiResponse . TranslateAsync ( async ( ) => await apiClient . PatchAirplaneAsync ( airplaneId , null , requestDocument2 ) ) ;
371
371
}
372
372
373
373
// Assert
@@ -423,7 +423,7 @@ public async Task Registration_is_unaffected_by_preceding_registration_for_diffe
423
423
airplane => airplane . IsInMaintenance , airplane => airplane . AirtimeInHours ) )
424
424
{
425
425
// Act
426
- _ = await ApiResponse . TranslateAsync ( ( ) => apiClient . PatchAirplaneAsync ( airplaneId2 , null , requestDocument2 ) ) ;
426
+ _ = await ApiResponse . TranslateAsync ( async ( ) => await apiClient . PatchAirplaneAsync ( airplaneId2 , null , requestDocument2 ) ) ;
427
427
}
428
428
}
429
429
0 commit comments