@@ -21,7 +21,7 @@ public sealed class ResponseTests
21
21
public async Task Getting_resource_collection_translates_response ( )
22
22
{
23
23
// Arrange
24
- const string flightId = "8712 " ;
24
+ const string flightId = "ZvuH1 " ;
25
25
const string flightDestination = "Destination of Flight" ;
26
26
const string fightServiceOnBoard = "Movies" ;
27
27
const string flightDepartsAt = "2014-11-25T00:00:00" ;
@@ -151,7 +151,7 @@ public async Task Getting_resource_collection_translates_response()
151
151
public async Task Getting_resource_translates_response ( )
152
152
{
153
153
// Arrange
154
- const string flightId = "8712 " ;
154
+ const string flightId = "ZvuH1 " ;
155
155
const string departsAtInZuluTime = "2021-06-08T12:53:30.554Z" ;
156
156
const string arrivesAtWithUtcOffset = "2019-02-20T11:56:33.0721266+01:00" ;
157
157
@@ -176,7 +176,7 @@ public async Task Getting_resource_translates_response()
176
176
IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
177
177
178
178
// Act
179
- FlightPrimaryResponseDocument document = await openApiClient . GetFlightAsync ( Convert . ToInt32 ( flightId ) ) ;
179
+ FlightPrimaryResponseDocument document = await openApiClient . GetFlightAsync ( flightId ) ;
180
180
181
181
// Assert
182
182
document . Jsonapi . Should ( ) . BeNull ( ) ;
@@ -194,7 +194,7 @@ public async Task Getting_resource_translates_response()
194
194
public async Task Getting_unknown_resource_translates_error_response ( )
195
195
{
196
196
// Arrange
197
- const string flightId = "8712 " ;
197
+ const string flightId = "ZvuH1 " ;
198
198
199
199
const string responseBody = @"{
200
200
""errors"": [
@@ -211,7 +211,7 @@ public async Task Getting_unknown_resource_translates_error_response()
211
211
IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
212
212
213
213
// Act
214
- Func < Task < FlightPrimaryResponseDocument > > action = async ( ) => await openApiClient . GetFlightAsync ( Convert . ToInt32 ( flightId ) ) ;
214
+ Func < Task < FlightPrimaryResponseDocument > > action = async ( ) => await openApiClient . GetFlightAsync ( flightId ) ;
215
215
216
216
// Assert
217
217
ExceptionAssertions < ApiException > assertion = await action . Should ( ) . ThrowExactlyAsync < ApiException > ( ) ;
@@ -225,7 +225,7 @@ public async Task Getting_unknown_resource_translates_error_response()
225
225
public async Task Posting_resource_translates_response ( )
226
226
{
227
227
// Arrange
228
- const string flightId = "8712 " ;
228
+ const string flightId = "ZvuH1 " ;
229
229
const string flightAttendantId = "bBJHu" ;
230
230
231
231
const string responseBody = @"{
@@ -305,7 +305,7 @@ public async Task Posting_resource_translates_response()
305
305
public async Task Patching_resource_with_side_effects_translates_response ( )
306
306
{
307
307
// Arrange
308
- const string flightId = "8712 " ;
308
+ const string flightId = "ZvuH1 " ;
309
309
310
310
const string responseBody = @"{
311
311
""links"": {
@@ -324,7 +324,7 @@ public async Task Patching_resource_with_side_effects_translates_response()
324
324
IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
325
325
326
326
// Act
327
- FlightPrimaryResponseDocument document = await openApiClient . PatchFlightAsync ( Convert . ToInt32 ( flightId ) , new FlightPatchRequestDocument
327
+ FlightPrimaryResponseDocument document = await openApiClient . PatchFlightAsync ( flightId , new FlightPatchRequestDocument
328
328
{
329
329
Data = new FlightDataInPatchRequest
330
330
{
@@ -343,13 +343,13 @@ public async Task Patching_resource_with_side_effects_translates_response()
343
343
public async Task Patching_resource_without_side_effects_translates_response ( )
344
344
{
345
345
// Arrange
346
- const string flightId = "8712 " ;
346
+ const string flightId = "ZvuH1 " ;
347
347
using var wrapper = FakeHttpClientWrapper . Create ( HttpStatusCode . NoContent , null ) ;
348
348
IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
349
349
350
350
// Act
351
- FlightPrimaryResponseDocument document = await ApiResponse . TranslateAsync ( async ( ) => await openApiClient . PatchFlightAsync (
352
- Convert . ToInt32 ( flightId ) , new FlightPatchRequestDocument
351
+ FlightPrimaryResponseDocument document = await ApiResponse . TranslateAsync ( async ( ) => await openApiClient . PatchFlightAsync ( flightId ,
352
+ new FlightPatchRequestDocument
353
353
{
354
354
Data = new FlightDataInPatchRequest
355
355
{
@@ -370,7 +370,7 @@ public async Task Deleting_resource_produces_empty_response()
370
370
IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
371
371
372
372
// Act
373
- Func < Task > action = async ( ) => await openApiClient . DeleteFlightAsync ( 8712 ) ;
373
+ Func < Task > action = async ( ) => await openApiClient . DeleteFlightAsync ( "ZvuH1" ) ;
374
374
375
375
// Assert
376
376
await action . Should ( ) . NotThrowAsync ( ) ;
@@ -380,7 +380,7 @@ public async Task Deleting_resource_produces_empty_response()
380
380
public async Task Getting_secondary_resource_translates_response ( )
381
381
{
382
382
// Arrange
383
- const string flightId = "8712 " ;
383
+ const string flightId = "ZvuH1 " ;
384
384
385
385
const string responseBody = @"{
386
386
""links"": {
@@ -395,7 +395,7 @@ public async Task Getting_secondary_resource_translates_response()
395
395
IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
396
396
397
397
// Act
398
- AirplaneSecondaryResponseDocument document = await openApiClient . GetFlightOperatingAirplaneAsync ( Convert . ToInt32 ( flightId ) ) ;
398
+ AirplaneSecondaryResponseDocument document = await openApiClient . GetFlightOperatingAirplaneAsync ( flightId ) ;
399
399
400
400
// Assert
401
401
document . Data . Should ( ) . BeNull ( ) ;
@@ -405,7 +405,7 @@ public async Task Getting_secondary_resource_translates_response()
405
405
public async Task Getting_secondary_resources_translates_response ( )
406
406
{
407
407
// Arrange
408
- const string flightId = "8712 " ;
408
+ const string flightId = "ZvuH1 " ;
409
409
410
410
const string responseBody = @"{
411
411
""links"": {
@@ -419,7 +419,7 @@ public async Task Getting_secondary_resources_translates_response()
419
419
IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
420
420
421
421
// Act
422
- FlightAttendantCollectionResponseDocument document = await openApiClient . GetFlightCabinPersonnelAsync ( Convert . ToInt32 ( flightId ) ) ;
422
+ FlightAttendantCollectionResponseDocument document = await openApiClient . GetFlightCabinPersonnelAsync ( flightId ) ;
423
423
424
424
// Assert
425
425
document . Data . Should ( ) . BeEmpty ( ) ;
@@ -429,7 +429,7 @@ public async Task Getting_secondary_resources_translates_response()
429
429
public async Task Getting_ToOne_relationship_translates_response ( )
430
430
{
431
431
// Arrange
432
- const string flightId = "8712 " ;
432
+ const string flightId = "ZvuH1 " ;
433
433
const string operatingAirplaneId = "bBJHu" ;
434
434
435
435
const string responseBody = @"{
@@ -447,7 +447,7 @@ public async Task Getting_ToOne_relationship_translates_response()
447
447
IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
448
448
449
449
// Act
450
- AirplaneIdentifierResponseDocument document = await openApiClient . GetFlightOperatingAirplaneRelationshipAsync ( Convert . ToInt32 ( flightId ) ) ;
450
+ AirplaneIdentifierResponseDocument document = await openApiClient . GetFlightOperatingAirplaneRelationshipAsync ( flightId ) ;
451
451
452
452
// Assert
453
453
document . Data . Should ( ) . NotBeNull ( ) ;
@@ -463,7 +463,7 @@ public async Task Patching_ToOne_relationship_translates_response()
463
463
IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
464
464
465
465
// Act
466
- await openApiClient . PatchFlightOperatingAirplaneRelationshipAsync ( 8712 , new ToOneAirplaneRequestData
466
+ await openApiClient . PatchFlightOperatingAirplaneRelationshipAsync ( "ZvuH1" , new ToOneAirplaneRequestData
467
467
{
468
468
Data = new AirplaneIdentifier
469
469
{
@@ -477,7 +477,7 @@ public async Task Patching_ToOne_relationship_translates_response()
477
477
public async Task Getting_ToMany_relationship_translates_response ( )
478
478
{
479
479
// Arrange
480
- const string flightId = "8712 " ;
480
+ const string flightId = "ZvuH1 " ;
481
481
const string flightAttendantId1 = "bBJHu" ;
482
482
const string flightAttendantId2 = "ZvuHNInmX1" ;
483
483
@@ -501,8 +501,7 @@ public async Task Getting_ToMany_relationship_translates_response()
501
501
IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
502
502
503
503
// Act
504
- FlightAttendantIdentifierCollectionResponseDocument document =
505
- await openApiClient . GetFlightCabinPersonnelRelationshipAsync ( Convert . ToInt32 ( flightId ) ) ;
504
+ FlightAttendantIdentifierCollectionResponseDocument document = await openApiClient . GetFlightCabinPersonnelRelationshipAsync ( flightId ) ;
506
505
507
506
// Assert
508
507
document . Data . Should ( ) . HaveCount ( 2 ) ;
@@ -520,7 +519,7 @@ public async Task Posting_ToMany_relationship_produces_empty_response()
520
519
IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
521
520
522
521
// Act
523
- Func < Task > action = async ( ) => await openApiClient . PostFlightCabinPersonnelRelationshipAsync ( 8712 , new ToManyFlightAttendantRequestData
522
+ Func < Task > action = async ( ) => await openApiClient . PostFlightCabinPersonnelRelationshipAsync ( "ZvuH1" , new ToManyFlightAttendantRequestData
524
523
{
525
524
Data = new List < FlightAttendantIdentifier >
526
525
{
@@ -549,7 +548,7 @@ public async Task Patching_ToMany_relationship_produces_empty_response()
549
548
IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
550
549
551
550
// Act
552
- Func < Task > action = async ( ) => await openApiClient . PatchFlightCabinPersonnelRelationshipAsync ( 8712 , new ToManyFlightAttendantRequestData
551
+ Func < Task > action = async ( ) => await openApiClient . PatchFlightCabinPersonnelRelationshipAsync ( "ZvuH1" , new ToManyFlightAttendantRequestData
553
552
{
554
553
Data = new List < FlightAttendantIdentifier >
555
554
{
@@ -578,7 +577,7 @@ public async Task Deleting_ToMany_relationship_produces_empty_response()
578
577
IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
579
578
580
579
// Act
581
- Func < Task > action = async ( ) => await openApiClient . DeleteFlightCabinPersonnelRelationshipAsync ( 8712 , new ToManyFlightAttendantRequestData
580
+ Func < Task > action = async ( ) => await openApiClient . DeleteFlightCabinPersonnelRelationshipAsync ( "ZvuH1" , new ToManyFlightAttendantRequestData
582
581
{
583
582
Data = new List < FlightAttendantIdentifier >
584
583
{
0 commit comments