File tree 2 files changed +6
-0
lines changed
test/OpenApiClientTests/ResourceFieldsValidation
NullableReferenceTypesDisabled
NullableReferenceTypesEnabled
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -372,6 +372,7 @@ public async Task Can_clear_has_one_relationship()
372
372
HenHousePostRequestDocument requestDocument = _fakers . HenHousePostRequestDocument . Generate ( ) ;
373
373
requestDocument . Data . Relationships . OldestChicken . Data = null ;
374
374
375
+ // Act
375
376
await ApiResponse . TranslateAsync ( async ( ) => await apiClient . PostHenHouseAsync ( requestDocument ) ) ;
376
377
377
378
// Assert
@@ -612,6 +613,7 @@ public async Task Relationships_required_in_POST_request_are_not_required_in_PAT
612
613
requestDocument . Data . Relationships . ChickensReadyForLaying = default ! ;
613
614
requestDocument . Data . Relationships . AllChickens = default ! ;
614
615
616
+ // Act
615
617
await ApiResponse . TranslateAsync ( async ( ) => await apiClient . PatchHenHouseAsync ( int . Parse ( requestDocument . Data . Id ) , requestDocument ) ) ;
616
618
617
619
// Assert
Original file line number Diff line number Diff line change @@ -458,6 +458,7 @@ public async Task Can_clear_nullable_has_one_relationship()
458
458
CowStablePostRequestDocument requestDocument = _fakers . CowStablePostRequestDocument . Generate ( ) ;
459
459
requestDocument . Data . Relationships . AlbinoCow . Data = null ;
460
460
461
+ // Act
461
462
await ApiResponse . TranslateAsync ( async ( ) => await apiClient . PostCowStableAsync ( requestDocument ) ) ;
462
463
463
464
// Assert
@@ -487,6 +488,7 @@ public async Task Can_exclude_nullable_has_one_relationship()
487
488
CowStablePostRequestDocument requestDocument = _fakers . CowStablePostRequestDocument . Generate ( ) ;
488
489
requestDocument . Data . Relationships . AlbinoCow = default ! ;
489
490
491
+ // Act
490
492
await ApiResponse . TranslateAsync ( async ( ) => await apiClient . PostCowStableAsync ( requestDocument ) ) ;
491
493
492
494
// Assert
@@ -561,6 +563,7 @@ public async Task Can_exclude_has_many_relationship()
561
563
CowStablePostRequestDocument requestDocument = _fakers . CowStablePostRequestDocument . Generate ( ) ;
562
564
requestDocument . Data . Relationships . CowsReadyForMilking = default ! ;
563
565
566
+ // Act
564
567
await ApiResponse . TranslateAsync ( async ( ) => await apiClient . PostCowStableAsync ( requestDocument ) ) ;
565
568
566
569
// Assert
@@ -700,6 +703,7 @@ public async Task Relationships_required_in_POST_request_are_not_required_in_PAT
700
703
requestDocument . Data . Relationships . FavoriteCow = default ! ;
701
704
requestDocument . Data . Relationships . AllCows = default ! ;
702
705
706
+ // Act
703
707
await ApiResponse . TranslateAsync ( async ( ) => await apiClient . PatchCowStableAsync ( int . Parse ( requestDocument . Data . Id ) , requestDocument ) ) ;
704
708
705
709
// Assert
You can’t perform that action at this time.
0 commit comments