Skip to content

Commit a2e7a96

Browse files
committed
Add two missing 'Act' comments
1 parent 76e098a commit a2e7a96

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/OpenApiClientTests/ResourceFieldsValidation/NullableReferenceTypesDisabled/RequestTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ public async Task Can_clear_has_one_relationship()
372372
HenHousePostRequestDocument requestDocument = _fakers.HenHousePostRequestDocument.Generate();
373373
requestDocument.Data.Relationships.OldestChicken.Data = null;
374374

375+
// Act
375376
await ApiResponse.TranslateAsync(async () => await apiClient.PostHenHouseAsync(requestDocument));
376377

377378
// Assert
@@ -612,6 +613,7 @@ public async Task Relationships_required_in_POST_request_are_not_required_in_PAT
612613
requestDocument.Data.Relationships.ChickensReadyForLaying = default!;
613614
requestDocument.Data.Relationships.AllChickens = default!;
614615

616+
// Act
615617
await ApiResponse.TranslateAsync(async () => await apiClient.PatchHenHouseAsync(int.Parse(requestDocument.Data.Id), requestDocument));
616618

617619
// Assert

test/OpenApiClientTests/ResourceFieldsValidation/NullableReferenceTypesEnabled/RequestTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ public async Task Can_clear_nullable_has_one_relationship()
458458
CowStablePostRequestDocument requestDocument = _fakers.CowStablePostRequestDocument.Generate();
459459
requestDocument.Data.Relationships.AlbinoCow.Data = null;
460460

461+
// Act
461462
await ApiResponse.TranslateAsync(async () => await apiClient.PostCowStableAsync(requestDocument));
462463

463464
// Assert
@@ -487,6 +488,7 @@ public async Task Can_exclude_nullable_has_one_relationship()
487488
CowStablePostRequestDocument requestDocument = _fakers.CowStablePostRequestDocument.Generate();
488489
requestDocument.Data.Relationships.AlbinoCow = default!;
489490

491+
// Act
490492
await ApiResponse.TranslateAsync(async () => await apiClient.PostCowStableAsync(requestDocument));
491493

492494
// Assert
@@ -561,6 +563,7 @@ public async Task Can_exclude_has_many_relationship()
561563
CowStablePostRequestDocument requestDocument = _fakers.CowStablePostRequestDocument.Generate();
562564
requestDocument.Data.Relationships.CowsReadyForMilking = default!;
563565

566+
// Act
564567
await ApiResponse.TranslateAsync(async () => await apiClient.PostCowStableAsync(requestDocument));
565568

566569
// Assert
@@ -700,6 +703,7 @@ public async Task Relationships_required_in_POST_request_are_not_required_in_PAT
700703
requestDocument.Data.Relationships.FavoriteCow = default!;
701704
requestDocument.Data.Relationships.AllCows = default!;
702705

706+
// Act
703707
await ApiResponse.TranslateAsync(async () => await apiClient.PatchCowStableAsync(int.Parse(requestDocument.Data.Id), requestDocument));
704708

705709
// Assert

0 commit comments

Comments
 (0)