@@ -28,8 +28,8 @@ public async Task Getting_resource_collection_translates_response()
28
28
const string documentMetaValue = "1" ;
29
29
const string flightMetaValue = "https://api.jsonapi.net/docs/#get-flights" ;
30
30
const string operatingAirplaneMetaValue = "https://jsonapi.net/api/docs/#get-flight-operating-airplane" ;
31
- const string cabinPersonnelMetaValue = "https://jsonapi.net/api/docs/#get-flight-cabin-personnel " ;
32
- const string reserveCabinPersonnelMetaValue = "https://jsonapi.net/api/docs/#get-flight-backup-cabin-personnel " ;
31
+ const string cabinPersonnelMetaValue = "https://jsonapi.net/api/docs/#get-flight-cabin-crew-members " ;
32
+ const string purserMetaValue = "https://jsonapi.net/api/docs/#get-flight-purser " ;
33
33
const string topLevelLink = HostPrefix + "flights" ;
34
34
const string flightResourceLink = topLevelLink + "/" + flightId ;
35
35
@@ -68,22 +68,22 @@ public async Task Getting_resource_collection_translates_response()
68
68
""docs"": """ + operatingAirplaneMetaValue + @"""
69
69
}
70
70
},
71
- ""cabin-personnel "": {
71
+ ""cabin-crew-members "": {
72
72
""links"": {
73
- ""self"": """ + flightResourceLink + @"/relationships/cabin-personnel "",
74
- ""related"": """ + flightResourceLink + @"/cabin-personnel ""
73
+ ""self"": """ + flightResourceLink + @"/relationships/cabin-crew-members "",
74
+ ""related"": """ + flightResourceLink + @"/cabin-crew-members ""
75
75
},
76
76
""meta"": {
77
77
""docs"": """ + cabinPersonnelMetaValue + @"""
78
78
}
79
79
},
80
- ""backup-cabin-personnel "": {
80
+ ""purser "": {
81
81
""links"": {
82
- ""self"": """ + flightResourceLink + @"/relationships/backup-cabin-personnel "",
83
- ""related"": """ + flightResourceLink + @"/backup-cabin-personnel ""
82
+ ""self"": """ + flightResourceLink + @"/relationships/purser "",
83
+ ""related"": """ + flightResourceLink + @"/purser ""
84
84
},
85
85
""meta"": {
86
- ""docs"": """ + reserveCabinPersonnelMetaValue + @"""
86
+ ""docs"": """ + purserMetaValue + @"""
87
87
}
88
88
}
89
89
},
@@ -134,17 +134,17 @@ public async Task Getting_resource_collection_translates_response()
134
134
flight . Relationships . OperatingAirplane . Meta . Should ( ) . HaveCount ( 1 ) ;
135
135
flight . Relationships . OperatingAirplane . Meta [ "docs" ] . Should ( ) . Be ( operatingAirplaneMetaValue ) ;
136
136
137
- flight . Relationships . CabinPersonnel . Data . Should ( ) . BeNull ( ) ;
138
- flight . Relationships . CabinPersonnel . Links . Self . Should ( ) . Be ( flightResourceLink + "/relationships/cabin-personnel " ) ;
139
- flight . Relationships . CabinPersonnel . Links . Related . Should ( ) . Be ( flightResourceLink + "/cabin-personnel " ) ;
140
- flight . Relationships . CabinPersonnel . Meta . Should ( ) . HaveCount ( 1 ) ;
141
- flight . Relationships . CabinPersonnel . Meta [ "docs" ] . Should ( ) . Be ( cabinPersonnelMetaValue ) ;
142
-
143
- flight . Relationships . BackupCabinPersonnel . Data . Should ( ) . BeNull ( ) ;
144
- flight . Relationships . BackupCabinPersonnel . Links . Self . Should ( ) . Be ( flightResourceLink + "/relationships/backup-cabin-personnel " ) ;
145
- flight . Relationships . BackupCabinPersonnel . Links . Related . Should ( ) . Be ( flightResourceLink + "/backup-cabin-personnel " ) ;
146
- flight . Relationships . BackupCabinPersonnel . Meta . Should ( ) . HaveCount ( 1 ) ;
147
- flight . Relationships . BackupCabinPersonnel . Meta [ "docs" ] . Should ( ) . Be ( reserveCabinPersonnelMetaValue ) ;
137
+ flight . Relationships . CabinCrewMembers . Data . Should ( ) . BeNull ( ) ;
138
+ flight . Relationships . CabinCrewMembers . Links . Self . Should ( ) . Be ( flightResourceLink + "/relationships/cabin-crew-members " ) ;
139
+ flight . Relationships . CabinCrewMembers . Links . Related . Should ( ) . Be ( flightResourceLink + "/cabin-crew-members " ) ;
140
+ flight . Relationships . CabinCrewMembers . Meta . Should ( ) . HaveCount ( 1 ) ;
141
+ flight . Relationships . CabinCrewMembers . Meta [ "docs" ] . Should ( ) . Be ( cabinPersonnelMetaValue ) ;
142
+
143
+ flight . Relationships . Purser . Data . Should ( ) . BeNull ( ) ;
144
+ flight . Relationships . Purser . Links . Self . Should ( ) . Be ( flightResourceLink + "/relationships/purser " ) ;
145
+ flight . Relationships . Purser . Links . Related . Should ( ) . Be ( flightResourceLink + "/purser " ) ;
146
+ flight . Relationships . Purser . Meta . Should ( ) . HaveCount ( 1 ) ;
147
+ flight . Relationships . Purser . Meta [ "docs" ] . Should ( ) . Be ( purserMetaValue ) ;
148
148
}
149
149
150
150
[ Fact ]
@@ -230,7 +230,7 @@ public async Task Posting_resource_translates_response()
230
230
231
231
const string responseBody = @"{
232
232
""links"": {
233
- ""self"": """ + HostPrefix + @"flights/" + flightId + @"&fields[flights]&include=operating-airplane,cabin-personnel,backup-cabin-personnel ""
233
+ ""self"": """ + HostPrefix + @"flights/" + flightId + @"&fields[flights]&include=operating-airplane,cabin-crew-members,purser ""
234
234
},
235
235
""data"": {
236
236
""type"": ""flights"",
@@ -243,10 +243,10 @@ public async Task Posting_resource_translates_response()
243
243
},
244
244
""data"": null
245
245
},
246
- ""cabin-personnel "": {
246
+ ""cabin-crew-members "": {
247
247
""links"": {
248
- ""self"": """ + HostPrefix + @"flights/" + flightId + @"/relationships/cabin-personnel "",
249
- ""related"": """ + HostPrefix + @"flights/" + flightId + @"/cabin-personnel ""
248
+ ""self"": """ + HostPrefix + @"flights/" + flightId + @"/relationships/cabin-crew-members "",
249
+ ""related"": """ + HostPrefix + @"flights/" + flightId + @"/cabin-crew-members ""
250
250
},
251
251
""data"": [
252
252
{
@@ -255,16 +255,16 @@ public async Task Posting_resource_translates_response()
255
255
}
256
256
],
257
257
},
258
- ""backup-cabin-personnel "": {
258
+ ""purser "": {
259
259
""links"": {
260
- ""self"": """ + HostPrefix + @"flights/" + flightId + @"/relationships/backup-cabin-personnel "",
261
- ""related"": """ + HostPrefix + @"flights/" + flightId + @"/backup-cabin-personnel ""
260
+ ""self"": """ + HostPrefix + @"flights/" + flightId + @"/relationships/purser "",
261
+ ""related"": """ + HostPrefix + @"flights/" + flightId + @"/purser ""
262
262
},
263
- ""data"": [ ]
263
+ ""data"": null
264
264
}
265
265
},
266
266
""links"": {
267
- ""self"": """ + HostPrefix + @"flights/" + flightId + @"&fields[flights]&include=operating-airplane,cabin-personnel,backup-cabin-personnel ""
267
+ ""self"": """ + HostPrefix + @"flights/" + flightId + @"&fields[flights]&include=operating-airplane,cabin-crew-members,purser ""
268
268
}
269
269
}
270
270
}" ;
@@ -295,10 +295,10 @@ public async Task Posting_resource_translates_response()
295
295
// Assert
296
296
document . Data . Attributes . Should ( ) . BeNull ( ) ;
297
297
document . Data . Relationships . OperatingAirplane . Data . Should ( ) . BeNull ( ) ;
298
- document . Data . Relationships . CabinPersonnel . Data . Should ( ) . HaveCount ( 1 ) ;
299
- document . Data . Relationships . CabinPersonnel . Data . First ( ) . Id . Should ( ) . Be ( flightAttendantId ) ;
300
- document . Data . Relationships . CabinPersonnel . Data . First ( ) . Type . Should ( ) . Be ( FlightAttendantsResourceType . FlightAttendants ) ;
301
- document . Data . Relationships . BackupCabinPersonnel . Data . Should ( ) . BeEmpty ( ) ;
298
+ document . Data . Relationships . CabinCrewMembers . Data . Should ( ) . HaveCount ( 1 ) ;
299
+ document . Data . Relationships . CabinCrewMembers . Data . First ( ) . Id . Should ( ) . Be ( flightAttendantId ) ;
300
+ document . Data . Relationships . CabinCrewMembers . Data . First ( ) . Type . Should ( ) . Be ( FlightAttendantsResourceType . FlightAttendants ) ;
301
+ document . Data . Relationships . Purser . Data . Should ( ) . BeNull ( ) ;
302
302
}
303
303
304
304
[ Fact ]
@@ -315,7 +315,7 @@ public async Task Patching_resource_with_side_effects_translates_response()
315
315
""type"": ""flights"",
316
316
""id"": """ + flightId + @""",
317
317
""links"": {
318
- ""self"": """ + HostPrefix + @"flights/" + flightId + @"&fields[flights]&include=operating-airplane,cabin-personnel,backup-cabin-personnel ""
318
+ ""self"": """ + HostPrefix + @"flights/" + flightId + @"&fields[flights]&include=operating-airplane,cabin-crew-members,purser ""
319
319
}
320
320
}
321
321
}" ;
@@ -409,8 +409,8 @@ public async Task Getting_secondary_resources_translates_response()
409
409
410
410
const string responseBody = @"{
411
411
""links"": {
412
- ""self"": """ + HostPrefix + @"flights/" + flightId + @"/cabin-personnel "",
413
- ""first"": """ + HostPrefix + @"flights/" + flightId + @"/cabin-personnel ""
412
+ ""self"": """ + HostPrefix + @"flights/" + flightId + @"/cabin-crew-members "",
413
+ ""first"": """ + HostPrefix + @"flights/" + flightId + @"/cabin-crew-members ""
414
414
},
415
415
""data"": [ ]
416
416
}" ;
@@ -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 ( flightId ) ;
422
+ FlightAttendantCollectionResponseDocument document = await openApiClient . GetFlightCabinCrewMembersAsync ( flightId ) ;
423
423
424
424
// Assert
425
425
document . Data . Should ( ) . BeEmpty ( ) ;
@@ -483,9 +483,9 @@ public async Task Getting_ToMany_relationship_translates_response()
483
483
484
484
const string responseBody = @"{
485
485
""links"": {
486
- ""self"": """ + HostPrefix + @"flights/" + flightId + @"/relationships/cabin-personnel "",
487
- ""related"": """ + HostPrefix + @"flights/" + flightId + @"/relationships/cabin-personnel "",
488
- ""first"": """ + HostPrefix + @"flights/" + flightId + @"/relationships/cabin-personnel ""
486
+ ""self"": """ + HostPrefix + @"flights/" + flightId + @"/relationships/cabin-crew-members "",
487
+ ""related"": """ + HostPrefix + @"flights/" + flightId + @"/relationships/cabin-crew-members "",
488
+ ""first"": """ + HostPrefix + @"flights/" + flightId + @"/relationships/cabin-crew-members ""
489
489
},
490
490
""data"": [{
491
491
""type"": ""flight-attendants"",
@@ -501,7 +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 = await openApiClient . GetFlightCabinPersonnelRelationshipAsync ( flightId ) ;
504
+ FlightAttendantIdentifierCollectionResponseDocument document = await openApiClient . GetFlightCabinCrewMembersRelationshipAsync ( flightId ) ;
505
505
506
506
// Assert
507
507
document . Data . Should ( ) . HaveCount ( 2 ) ;
@@ -519,7 +519,7 @@ public async Task Posting_ToMany_relationship_produces_empty_response()
519
519
IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
520
520
521
521
// Act
522
- Func < Task > action = async ( ) => await openApiClient . PostFlightCabinPersonnelRelationshipAsync ( "ZvuH1" , new ToManyFlightAttendantRequestData
522
+ Func < Task > action = async ( ) => await openApiClient . PostFlightCabinCrewMembersRelationshipAsync ( "ZvuH1" , new ToManyFlightAttendantRequestData
523
523
{
524
524
Data = new List < FlightAttendantIdentifier >
525
525
{
@@ -548,7 +548,7 @@ public async Task Patching_ToMany_relationship_produces_empty_response()
548
548
IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
549
549
550
550
// Act
551
- Func < Task > action = async ( ) => await openApiClient . PatchFlightCabinPersonnelRelationshipAsync ( "ZvuH1" , new ToManyFlightAttendantRequestData
551
+ Func < Task > action = async ( ) => await openApiClient . PatchFlightCabinCrewMembersRelationshipAsync ( "ZvuH1" , new ToManyFlightAttendantRequestData
552
552
{
553
553
Data = new List < FlightAttendantIdentifier >
554
554
{
@@ -577,7 +577,7 @@ public async Task Deleting_ToMany_relationship_produces_empty_response()
577
577
IOpenApiClient openApiClient = new OpenApiClient ( wrapper . HttpClient ) ;
578
578
579
579
// Act
580
- Func < Task > action = async ( ) => await openApiClient . DeleteFlightCabinPersonnelRelationshipAsync ( "ZvuH1" , new ToManyFlightAttendantRequestData
580
+ Func < Task > action = async ( ) => await openApiClient . DeleteFlightCabinCrewMembersRelationshipAsync ( "ZvuH1" , new ToManyFlightAttendantRequestData
581
581
{
582
582
Data = new List < FlightAttendantIdentifier >
583
583
{
0 commit comments