|
1 | 1 | using FluentAssertions; |
2 | 2 | using JsonApiDotNetCore.AtomicOperations; |
3 | 3 | using JsonApiDotNetCore.Middleware; |
4 | | -using JsonApiDotNetCore.OpenApi.Client.NSwag; |
5 | 4 | using Microsoft.EntityFrameworkCore; |
6 | 5 | using Microsoft.Extensions.DependencyInjection; |
7 | 6 | using OpenApiNSwagEndToEndTests.OnlyRelationshipsInheritance.GeneratedCode; |
@@ -182,7 +181,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext => |
182 | 181 | }; |
183 | 182 |
|
184 | 183 | // Act |
185 | | - await ApiResponse.TranslateAsync(async () => await apiClient.PatchRoomResidenceRelationshipAsync(existingBathroom.StringId!, requestBody)); |
| 184 | + await apiClient.PatchRoomResidenceRelationshipAsync(existingBathroom.StringId!, requestBody); |
186 | 185 |
|
187 | 186 | // Assert |
188 | 187 | await _testContext.RunOnDatabaseAsync(async dbContext => |
@@ -225,7 +224,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext => |
225 | 224 | }; |
226 | 225 |
|
227 | 226 | // Act |
228 | | - await ApiResponse.TranslateAsync(async () => await apiClient.PatchRoomResidenceRelationshipAsync(existingBathroom.StringId!, requestBody)); |
| 227 | + await apiClient.PatchRoomResidenceRelationshipAsync(existingBathroom.StringId!, requestBody); |
229 | 228 |
|
230 | 229 | // Assert |
231 | 230 | await _testContext.RunOnDatabaseAsync(async dbContext => |
@@ -268,7 +267,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext => |
268 | 267 | }; |
269 | 268 |
|
270 | 269 | // Act |
271 | | - await ApiResponse.TranslateAsync(async () => await apiClient.PatchBathroomResidenceRelationshipAsync(existingBathroom.StringId!, requestBody)); |
| 270 | + await apiClient.PatchBathroomResidenceRelationshipAsync(existingBathroom.StringId!, requestBody); |
272 | 271 |
|
273 | 272 | // Assert |
274 | 273 | await _testContext.RunOnDatabaseAsync(async dbContext => |
@@ -311,7 +310,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext => |
311 | 310 | }; |
312 | 311 |
|
313 | 312 | // Act |
314 | | - await ApiResponse.TranslateAsync(async () => await apiClient.PatchBathroomResidenceRelationshipAsync(existingBathroom.StringId!, requestBody)); |
| 313 | + await apiClient.PatchBathroomResidenceRelationshipAsync(existingBathroom.StringId!, requestBody); |
315 | 314 |
|
316 | 315 | // Assert |
317 | 316 | await _testContext.RunOnDatabaseAsync(async dbContext => |
@@ -359,7 +358,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext => |
359 | 358 | }; |
360 | 359 |
|
361 | 360 | // Act |
362 | | - await ApiResponse.TranslateAsync(async () => await apiClient.PatchResidenceRoomsRelationshipAsync(existingMansion.StringId!, requestBody)); |
| 361 | + await apiClient.PatchResidenceRoomsRelationshipAsync(existingMansion.StringId!, requestBody); |
363 | 362 |
|
364 | 363 | // Assert |
365 | 364 | await _testContext.RunOnDatabaseAsync(async dbContext => |
@@ -407,7 +406,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext => |
407 | 406 | }; |
408 | 407 |
|
409 | 408 | // Act |
410 | | - await ApiResponse.TranslateAsync(async () => await apiClient.PatchResidenceRoomsRelationshipAsync(existingMansion.StringId!, requestBody)); |
| 409 | + await apiClient.PatchResidenceRoomsRelationshipAsync(existingMansion.StringId!, requestBody); |
411 | 410 |
|
412 | 411 | // Assert |
413 | 412 | await _testContext.RunOnDatabaseAsync(async dbContext => |
@@ -455,7 +454,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext => |
455 | 454 | }; |
456 | 455 |
|
457 | 456 | // Act |
458 | | - await ApiResponse.TranslateAsync(async () => await apiClient.PatchMansionRoomsRelationshipAsync(existingMansion.StringId!, requestBody)); |
| 457 | + await apiClient.PatchMansionRoomsRelationshipAsync(existingMansion.StringId!, requestBody); |
459 | 458 |
|
460 | 459 | // Assert |
461 | 460 | await _testContext.RunOnDatabaseAsync(async dbContext => |
@@ -503,7 +502,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext => |
503 | 502 | }; |
504 | 503 |
|
505 | 504 | // Act |
506 | | - await ApiResponse.TranslateAsync(async () => await apiClient.PatchMansionRoomsRelationshipAsync(existingMansion.StringId!, requestBody)); |
| 505 | + await apiClient.PatchMansionRoomsRelationshipAsync(existingMansion.StringId!, requestBody); |
507 | 506 |
|
508 | 507 | // Assert |
509 | 508 | await _testContext.RunOnDatabaseAsync(async dbContext => |
@@ -552,7 +551,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext => |
552 | 551 | }; |
553 | 552 |
|
554 | 553 | // Act |
555 | | - await ApiResponse.TranslateAsync(async () => await apiClient.PostResidenceRoomsRelationshipAsync(existingMansion.StringId!, requestBody)); |
| 554 | + await apiClient.PostResidenceRoomsRelationshipAsync(existingMansion.StringId!, requestBody); |
556 | 555 |
|
557 | 556 | // Assert |
558 | 557 | await _testContext.RunOnDatabaseAsync(async dbContext => |
@@ -602,7 +601,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext => |
602 | 601 | }; |
603 | 602 |
|
604 | 603 | // Act |
605 | | - await ApiResponse.TranslateAsync(async () => await apiClient.PostResidenceRoomsRelationshipAsync(existingMansion.StringId!, requestBody)); |
| 604 | + await apiClient.PostResidenceRoomsRelationshipAsync(existingMansion.StringId!, requestBody); |
606 | 605 |
|
607 | 606 | // Assert |
608 | 607 | await _testContext.RunOnDatabaseAsync(async dbContext => |
@@ -652,7 +651,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext => |
652 | 651 | }; |
653 | 652 |
|
654 | 653 | // Act |
655 | | - await ApiResponse.TranslateAsync(async () => await apiClient.PostMansionRoomsRelationshipAsync(existingMansion.StringId!, requestBody)); |
| 654 | + await apiClient.PostMansionRoomsRelationshipAsync(existingMansion.StringId!, requestBody); |
656 | 655 |
|
657 | 656 | // Assert |
658 | 657 | await _testContext.RunOnDatabaseAsync(async dbContext => |
@@ -702,7 +701,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext => |
702 | 701 | }; |
703 | 702 |
|
704 | 703 | // Act |
705 | | - await ApiResponse.TranslateAsync(async () => await apiClient.PostMansionRoomsRelationshipAsync(existingMansion.StringId!, requestBody)); |
| 704 | + await apiClient.PostMansionRoomsRelationshipAsync(existingMansion.StringId!, requestBody); |
706 | 705 |
|
707 | 706 | // Assert |
708 | 707 | await _testContext.RunOnDatabaseAsync(async dbContext => |
@@ -747,7 +746,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext => |
747 | 746 | }; |
748 | 747 |
|
749 | 748 | // Act |
750 | | - await ApiResponse.TranslateAsync(async () => await apiClient.DeleteResidenceRoomsRelationshipAsync(existingMansion.StringId!, requestBody)); |
| 749 | + await apiClient.DeleteResidenceRoomsRelationshipAsync(existingMansion.StringId!, requestBody); |
751 | 750 |
|
752 | 751 | // Assert |
753 | 752 | await _testContext.RunOnDatabaseAsync(async dbContext => |
@@ -790,7 +789,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext => |
790 | 789 | }; |
791 | 790 |
|
792 | 791 | // Act |
793 | | - await ApiResponse.TranslateAsync(async () => await apiClient.DeleteResidenceRoomsRelationshipAsync(existingMansion.StringId!, requestBody)); |
| 792 | + await apiClient.DeleteResidenceRoomsRelationshipAsync(existingMansion.StringId!, requestBody); |
794 | 793 |
|
795 | 794 | // Assert |
796 | 795 | await _testContext.RunOnDatabaseAsync(async dbContext => |
@@ -833,7 +832,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext => |
833 | 832 | }; |
834 | 833 |
|
835 | 834 | // Act |
836 | | - await ApiResponse.TranslateAsync(async () => await apiClient.DeleteMansionRoomsRelationshipAsync(existingMansion.StringId!, requestBody)); |
| 835 | + await apiClient.DeleteMansionRoomsRelationshipAsync(existingMansion.StringId!, requestBody); |
837 | 836 |
|
838 | 837 | // Assert |
839 | 838 | await _testContext.RunOnDatabaseAsync(async dbContext => |
@@ -876,7 +875,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext => |
876 | 875 | }; |
877 | 876 |
|
878 | 877 | // Act |
879 | | - await ApiResponse.TranslateAsync(async () => await apiClient.DeleteMansionRoomsRelationshipAsync(existingMansion.StringId!, requestBody)); |
| 878 | + await apiClient.DeleteMansionRoomsRelationshipAsync(existingMansion.StringId!, requestBody); |
880 | 879 |
|
881 | 880 | // Assert |
882 | 881 | await _testContext.RunOnDatabaseAsync(async dbContext => |
|
0 commit comments