From ad7a8d1efa62f36f8e12085bb30a72317dd329b0 Mon Sep 17 00:00:00 2001 From: David Kallesen Date: Thu, 8 Aug 2024 13:09:02 +0200 Subject: [PATCH 1/3] feat: add sealed for handler generation --- src/Atc.CodeGeneration.CSharp/Content/AccessModifiers.cs | 3 +++ .../ContentGeneratorServerHandlerParametersFactory.cs | 2 +- .../ContentGeneratorServerHandlerParametersFactory.cs | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Atc.CodeGeneration.CSharp/Content/AccessModifiers.cs b/src/Atc.CodeGeneration.CSharp/Content/AccessModifiers.cs index ced56d0e..66075c68 100644 --- a/src/Atc.CodeGeneration.CSharp/Content/AccessModifiers.cs +++ b/src/Atc.CodeGeneration.CSharp/Content/AccessModifiers.cs @@ -22,6 +22,9 @@ public enum AccessModifiers [Description("public static class")] PublicStaticClass, + [Description("public sealed class")] + PublicSealedClass, + [Description("public record")] PublicRecord, diff --git a/src/Atc.Rest.ApiGenerator.Framework.Minimal/Factories/ContentGeneratorServerHandlerParametersFactory.cs b/src/Atc.Rest.ApiGenerator.Framework.Minimal/Factories/ContentGeneratorServerHandlerParametersFactory.cs index 03e8379e..598db795 100644 --- a/src/Atc.Rest.ApiGenerator.Framework.Minimal/Factories/ContentGeneratorServerHandlerParametersFactory.cs +++ b/src/Atc.Rest.ApiGenerator.Framework.Minimal/Factories/ContentGeneratorServerHandlerParametersFactory.cs @@ -61,7 +61,7 @@ public static ClassParameters Create( @namespace, openApiOperation.ExtractDocumentationTagsForHandler(), Attributes: null, - AccessModifiers.PublicClass, + AccessModifiers.PublicSealedClass, ClassTypeName: $"{operationName}{ContentGeneratorConstants.Handler}", GenericTypeName: null, InheritedClassTypeName: $"I{operationName}{ContentGeneratorConstants.Handler}", diff --git a/src/Atc.Rest.ApiGenerator.Framework.Mvc/Factories/ContentGeneratorServerHandlerParametersFactory.cs b/src/Atc.Rest.ApiGenerator.Framework.Mvc/Factories/ContentGeneratorServerHandlerParametersFactory.cs index 4d54eb46..ce0191b2 100644 --- a/src/Atc.Rest.ApiGenerator.Framework.Mvc/Factories/ContentGeneratorServerHandlerParametersFactory.cs +++ b/src/Atc.Rest.ApiGenerator.Framework.Mvc/Factories/ContentGeneratorServerHandlerParametersFactory.cs @@ -58,7 +58,7 @@ public static ClassParameters Create( @namespace, openApiOperation.ExtractDocumentationTagsForHandler(), Attributes: null, - AccessModifiers.PublicClass, + AccessModifiers.PublicSealedClass, ClassTypeName: $"{operationName}{ContentGeneratorConstants.Handler}", GenericTypeName: null, InheritedClassTypeName: $"I{operationName}{ContentGeneratorConstants.Handler}", From 26b8b4b69aa04e25c3a75daf3da8bcb28b4c32b7 Mon Sep 17 00:00:00 2001 From: David Kallesen Date: Thu, 8 Aug 2024 13:09:32 +0200 Subject: [PATCH 2/3] test: update integration test with sealed class for handlers --- .../Handlers/Accounts/SetAccountNameHandler.verified.cs | 2 +- .../Handlers/Accounts/UpdateAccountNameHandler.verified.cs | 2 +- .../Addresses/GetAddressesByPostalCodesHandler.verified.cs | 2 +- .../Handlers/EventArgs/GetEventArgByIdHandler.verified.cs | 2 +- .../Handlers/EventArgs/GetEventArgsHandler.verified.cs | 2 +- .../Handlers/Files/GetFileByIdHandler.verified.cs | 2 +- .../Files/UploadMultiFilesAsFormDataHandler.verified.cs | 2 +- .../Files/UploadSingleFileAsFormDataHandler.verified.cs | 2 +- .../UploadSingleObjectWithFileAsFormDataHandler.verified.cs | 2 +- .../UploadSingleObjectWithFilesAsFormDataHandler.verified.cs | 2 +- .../Handlers/Items/CreateItemHandler.verified.cs | 2 +- .../Handlers/Items/UpdateItemHandler.verified.cs | 2 +- .../Handlers/Orders/GetOrderByIdHandler.verified.cs | 2 +- .../Handlers/Orders/GetOrdersHandler.verified.cs | 2 +- .../Handlers/Orders/PatchOrdersIdHandler.verified.cs | 2 +- .../Handlers/RouteWithDash/GetRouteWithDashHandler.verified.cs | 2 +- .../Handlers/Tasks/GetTasksHandler.verified.cs | 2 +- .../Handlers/Users/DeleteUserByIdHandler.verified.cs | 2 +- .../Handlers/Users/GetUserByEmailHandler.verified.cs | 2 +- .../Handlers/Users/GetUserByIdHandler.verified.cs | 2 +- .../Handlers/Users/GetUsersHandler.verified.cs | 2 +- .../Handlers/Users/PostUserHandler.verified.cs | 2 +- .../Handlers/Users/UpdateMyTestGenderHandler.verified.cs | 2 +- .../Handlers/Users/UpdateUserByIdHandler.verified.cs | 2 +- .../Handlers/Accounts/SetAccountNameHandler.verified.cs | 2 +- .../Handlers/Accounts/UpdateAccountNameHandler.verified.cs | 2 +- .../Addresses/GetAddressesByPostalCodesHandler.verified.cs | 2 +- .../Handlers/EventArgs/GetEventArgByIdHandler.verified.cs | 2 +- .../Handlers/EventArgs/GetEventArgsHandler.verified.cs | 2 +- .../Handlers/Files/GetFileByIdHandler.verified.cs | 2 +- .../Files/UploadMultiFilesAsFormDataHandler.verified.cs | 2 +- .../Files/UploadSingleFileAsFormDataHandler.verified.cs | 2 +- .../UploadSingleObjectWithFileAsFormDataHandler.verified.cs | 2 +- .../UploadSingleObjectWithFilesAsFormDataHandler.verified.cs | 2 +- .../Handlers/Items/CreateItemHandler.verified.cs | 2 +- .../Handlers/Items/UpdateItemHandler.verified.cs | 2 +- .../Handlers/Orders/GetOrderByIdHandler.verified.cs | 2 +- .../Handlers/Orders/GetOrdersHandler.verified.cs | 2 +- .../Handlers/Orders/PatchOrdersIdHandler.verified.cs | 2 +- .../Handlers/RouteWithDash/GetRouteWithDashHandler.verified.cs | 2 +- .../Handlers/Tasks/GetTasksHandler.verified.cs | 2 +- .../Handlers/Users/DeleteUserByIdHandler.verified.cs | 2 +- .../Handlers/Users/GetUserByEmailHandler.verified.cs | 2 +- .../Handlers/Users/GetUserByIdHandler.verified.cs | 2 +- .../Handlers/Users/GetUsersHandler.verified.cs | 2 +- .../Handlers/Users/PostUserHandler.verified.cs | 2 +- .../Handlers/Users/UpdateMyTestGenderHandler.verified.cs | 2 +- .../Handlers/Users/UpdateUserByIdHandler.verified.cs | 2 +- .../Handlers/Example/GetExampleHandler.verified.cs | 2 +- .../Handlers/Example/GetExampleHandler.verified.cs | 2 +- .../Handlers/Cats/GetCatsHandler.verified.cs | 2 +- .../Handlers/Dogs/GetDogsHandler.verified.cs | 2 +- .../Handlers/Cats/GetCatsHandler.verified.cs | 2 +- .../Handlers/Dogs/GetDogsHandler.verified.cs | 2 +- .../Handlers/EventArgs/GetEventArgByIdHandler.verified.cs | 2 +- .../Handlers/EventArgs/GetEventArgsHandler.verified.cs | 2 +- .../Handlers/Orders/GetOrderByIdHandler.verified.cs | 2 +- .../Handlers/Orders/GetOrdersHandler.verified.cs | 2 +- .../Handlers/Tasks/GetTasksHandler.verified.cs | 2 +- .../Handlers/TestUnits/ListTestUnitsHandler.verified.cs | 2 +- .../Handlers/EventArgs/GetEventArgByIdHandler.verified.cs | 2 +- .../Handlers/EventArgs/GetEventArgsHandler.verified.cs | 2 +- .../Handlers/Orders/GetOrderByIdHandler.verified.cs | 2 +- .../Handlers/Orders/GetOrdersHandler.verified.cs | 2 +- .../Handlers/Tasks/GetTasksHandler.verified.cs | 2 +- .../Handlers/TestUnits/ListTestUnitsHandler.verified.cs | 2 +- .../Handlers/Users/DeleteUserByIdHandler.verified.cs | 2 +- .../Handlers/Users/GetUserByIdHandler.verified.cs | 2 +- .../ExUsers.Domain/Handlers/Users/GetUsersHandler.verified.cs | 2 +- .../ExUsers.Domain/Handlers/Users/PostUserHandler.verified.cs | 2 +- .../Handlers/Users/UpdateUserByIdHandler.verified.cs | 2 +- .../Handlers/Users/DeleteUserByIdHandler.verified.cs | 2 +- .../Handlers/Users/GetUserByIdHandler.verified.cs | 2 +- .../ExUsers.Domain/Handlers/Users/GetUsersHandler.verified.cs | 2 +- .../ExUsers.Domain/Handlers/Users/PostUserHandler.verified.cs | 2 +- .../Handlers/Users/UpdateUserByIdHandler.verified.cs | 2 +- .../PetStore.Domain/Handlers/Pets/CreatePetsHandler.verified.cs | 2 +- .../PetStore.Domain/Handlers/Pets/ListPetsHandler.verified.cs | 2 +- .../Handlers/Pets/ShowPetByIdHandler.verified.cs | 2 +- .../PetStore.Domain/Handlers/Pets/CreatePetsHandler.verified.cs | 2 +- .../PetStore.Domain/Handlers/Pets/ListPetsHandler.verified.cs | 2 +- .../Handlers/Pets/ShowPetByIdHandler.verified.cs | 2 +- 82 files changed, 82 insertions(+), 82 deletions(-) diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Accounts/SetAccountNameHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Accounts/SetAccountNameHandler.verified.cs index 74011829..8b605fdd 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Accounts/SetAccountNameHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Accounts/SetAccountNameHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Set name of account. /// Operation: SetAccountName. /// -public class SetAccountNameHandler : ISetAccountNameHandler +public sealed class SetAccountNameHandler : ISetAccountNameHandler { public Task ExecuteAsync( SetAccountNameParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Accounts/UpdateAccountNameHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Accounts/UpdateAccountNameHandler.verified.cs index f16f7b71..88abc05f 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Accounts/UpdateAccountNameHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Accounts/UpdateAccountNameHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Update name of account. /// Operation: UpdateAccountName. /// -public class UpdateAccountNameHandler : IUpdateAccountNameHandler +public sealed class UpdateAccountNameHandler : IUpdateAccountNameHandler { public Task ExecuteAsync( UpdateAccountNameParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Addresses/GetAddressesByPostalCodesHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Addresses/GetAddressesByPostalCodesHandler.verified.cs index 11e35eb5..4abbd334 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Addresses/GetAddressesByPostalCodesHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Addresses/GetAddressesByPostalCodesHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get addresses by postal code. /// Operation: GetAddressesByPostalCodes. /// -public class GetAddressesByPostalCodesHandler : IGetAddressesByPostalCodesHandler +public sealed class GetAddressesByPostalCodesHandler : IGetAddressesByPostalCodesHandler { public Task ExecuteAsync( GetAddressesByPostalCodesParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/EventArgs/GetEventArgByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/EventArgs/GetEventArgByIdHandler.verified.cs index 26d122c2..3743ebb5 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/EventArgs/GetEventArgByIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/EventArgs/GetEventArgByIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get EventArgs By Id. /// Operation: GetEventArgById. /// -public class GetEventArgByIdHandler : IGetEventArgByIdHandler +public sealed class GetEventArgByIdHandler : IGetEventArgByIdHandler { public Task ExecuteAsync( GetEventArgByIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/EventArgs/GetEventArgsHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/EventArgs/GetEventArgsHandler.verified.cs index 871231a4..752d7e5f 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/EventArgs/GetEventArgsHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/EventArgs/GetEventArgsHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get EventArgs List. /// Operation: GetEventArgs. /// -public class GetEventArgsHandler : IGetEventArgsHandler +public sealed class GetEventArgsHandler : IGetEventArgsHandler { public Task ExecuteAsync( CancellationToken cancellationToken = default) diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Files/GetFileByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Files/GetFileByIdHandler.verified.cs index c5b768bb..c8bdba06 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Files/GetFileByIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Files/GetFileByIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get File By Id. /// Operation: GetFileById. /// -public class GetFileByIdHandler : IGetFileByIdHandler +public sealed class GetFileByIdHandler : IGetFileByIdHandler { public Task ExecuteAsync( GetFileByIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Files/UploadMultiFilesAsFormDataHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Files/UploadMultiFilesAsFormDataHandler.verified.cs index c9b60425..22a0cac2 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Files/UploadMultiFilesAsFormDataHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Files/UploadMultiFilesAsFormDataHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Upload multi files as form data. /// Operation: UploadMultiFilesAsFormData. /// -public class UploadMultiFilesAsFormDataHandler : IUploadMultiFilesAsFormDataHandler +public sealed class UploadMultiFilesAsFormDataHandler : IUploadMultiFilesAsFormDataHandler { public Task ExecuteAsync( UploadMultiFilesAsFormDataParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Files/UploadSingleFileAsFormDataHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Files/UploadSingleFileAsFormDataHandler.verified.cs index 30b7bf72..3d3620f3 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Files/UploadSingleFileAsFormDataHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Files/UploadSingleFileAsFormDataHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Upload a file as OctetStream. /// Operation: UploadSingleFileAsFormData. /// -public class UploadSingleFileAsFormDataHandler : IUploadSingleFileAsFormDataHandler +public sealed class UploadSingleFileAsFormDataHandler : IUploadSingleFileAsFormDataHandler { public Task ExecuteAsync( UploadSingleFileAsFormDataParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Files/UploadSingleObjectWithFileAsFormDataHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Files/UploadSingleObjectWithFileAsFormDataHandler.verified.cs index bea71e5c..c13a77f3 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Files/UploadSingleObjectWithFileAsFormDataHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Files/UploadSingleObjectWithFileAsFormDataHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Upload a file as FormData. /// Operation: UploadSingleObjectWithFileAsFormData. /// -public class UploadSingleObjectWithFileAsFormDataHandler : IUploadSingleObjectWithFileAsFormDataHandler +public sealed class UploadSingleObjectWithFileAsFormDataHandler : IUploadSingleObjectWithFileAsFormDataHandler { public Task ExecuteAsync( UploadSingleObjectWithFileAsFormDataParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Files/UploadSingleObjectWithFilesAsFormDataHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Files/UploadSingleObjectWithFilesAsFormDataHandler.verified.cs index 2cbf5d1f..523ac472 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Files/UploadSingleObjectWithFilesAsFormDataHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Files/UploadSingleObjectWithFilesAsFormDataHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Upload files as FormData. /// Operation: UploadSingleObjectWithFilesAsFormData. /// -public class UploadSingleObjectWithFilesAsFormDataHandler : IUploadSingleObjectWithFilesAsFormDataHandler +public sealed class UploadSingleObjectWithFilesAsFormDataHandler : IUploadSingleObjectWithFilesAsFormDataHandler { public Task ExecuteAsync( UploadSingleObjectWithFilesAsFormDataParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Items/CreateItemHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Items/CreateItemHandler.verified.cs index f7bc0b7a..fee1a3cb 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Items/CreateItemHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Items/CreateItemHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Create a new item. /// Operation: CreateItem. /// -public class CreateItemHandler : ICreateItemHandler +public sealed class CreateItemHandler : ICreateItemHandler { public Task ExecuteAsync( CreateItemParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Items/UpdateItemHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Items/UpdateItemHandler.verified.cs index ab540578..da7633b7 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Items/UpdateItemHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Items/UpdateItemHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Updates an item. /// Operation: UpdateItem. /// -public class UpdateItemHandler : IUpdateItemHandler +public sealed class UpdateItemHandler : IUpdateItemHandler { public Task ExecuteAsync( UpdateItemParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Orders/GetOrderByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Orders/GetOrderByIdHandler.verified.cs index bb191095..3fdfde0d 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Orders/GetOrderByIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Orders/GetOrderByIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get order by id. /// Operation: GetOrderById. /// -public class GetOrderByIdHandler : IGetOrderByIdHandler +public sealed class GetOrderByIdHandler : IGetOrderByIdHandler { public Task ExecuteAsync( GetOrderByIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Orders/GetOrdersHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Orders/GetOrdersHandler.verified.cs index 0a6a1735..7f0c3d70 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Orders/GetOrdersHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Orders/GetOrdersHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get orders. /// Operation: GetOrders. /// -public class GetOrdersHandler : IGetOrdersHandler +public sealed class GetOrdersHandler : IGetOrdersHandler { public Task ExecuteAsync( GetOrdersParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Orders/PatchOrdersIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Orders/PatchOrdersIdHandler.verified.cs index b88929d7..d5182051 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Orders/PatchOrdersIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Orders/PatchOrdersIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Update part of order by id. /// Operation: PatchOrdersId. /// -public class PatchOrdersIdHandler : IPatchOrdersIdHandler +public sealed class PatchOrdersIdHandler : IPatchOrdersIdHandler { public Task ExecuteAsync( PatchOrdersIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/RouteWithDash/GetRouteWithDashHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/RouteWithDash/GetRouteWithDashHandler.verified.cs index 28de0339..bea4ca84 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/RouteWithDash/GetRouteWithDashHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/RouteWithDash/GetRouteWithDashHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Your GET endpoint. /// Operation: GetRouteWithDash. /// -public class GetRouteWithDashHandler : IGetRouteWithDashHandler +public sealed class GetRouteWithDashHandler : IGetRouteWithDashHandler { public Task ExecuteAsync( CancellationToken cancellationToken = default) diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Tasks/GetTasksHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Tasks/GetTasksHandler.verified.cs index 6f5a039e..85164289 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Tasks/GetTasksHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Tasks/GetTasksHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Returns tasks. /// Operation: GetTasks. /// -public class GetTasksHandler : IGetTasksHandler +public sealed class GetTasksHandler : IGetTasksHandler { public Task ExecuteAsync( CancellationToken cancellationToken = default) diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/DeleteUserByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/DeleteUserByIdHandler.verified.cs index 43b0d40c..5c13caa0 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/DeleteUserByIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/DeleteUserByIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Delete user by id. /// Operation: DeleteUserById. /// -public class DeleteUserByIdHandler : IDeleteUserByIdHandler +public sealed class DeleteUserByIdHandler : IDeleteUserByIdHandler { public Task ExecuteAsync( DeleteUserByIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/GetUserByEmailHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/GetUserByEmailHandler.verified.cs index ea1d73bf..0a8f38b2 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/GetUserByEmailHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/GetUserByEmailHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get user by email. /// Operation: GetUserByEmail. /// -public class GetUserByEmailHandler : IGetUserByEmailHandler +public sealed class GetUserByEmailHandler : IGetUserByEmailHandler { public Task ExecuteAsync( GetUserByEmailParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/GetUserByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/GetUserByIdHandler.verified.cs index a79a6d74..6e0cca60 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/GetUserByIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/GetUserByIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get user by id. /// Operation: GetUserById. /// -public class GetUserByIdHandler : IGetUserByIdHandler +public sealed class GetUserByIdHandler : IGetUserByIdHandler { public Task ExecuteAsync( GetUserByIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/GetUsersHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/GetUsersHandler.verified.cs index 1cec955a..61b10ff7 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/GetUsersHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/GetUsersHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get all users. /// Operation: GetUsers. /// -public class GetUsersHandler : IGetUsersHandler +public sealed class GetUsersHandler : IGetUsersHandler { public Task ExecuteAsync( CancellationToken cancellationToken = default) diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/PostUserHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/PostUserHandler.verified.cs index cd9593f7..f5803306 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/PostUserHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/PostUserHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Create a new user. /// Operation: PostUser. /// -public class PostUserHandler : IPostUserHandler +public sealed class PostUserHandler : IPostUserHandler { public Task ExecuteAsync( PostUserParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/UpdateMyTestGenderHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/UpdateMyTestGenderHandler.verified.cs index 335364a9..0f82a90b 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/UpdateMyTestGenderHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/UpdateMyTestGenderHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Update gender on a user. /// Operation: UpdateMyTestGender. /// -public class UpdateMyTestGenderHandler : IUpdateMyTestGenderHandler +public sealed class UpdateMyTestGenderHandler : IUpdateMyTestGenderHandler { public Task ExecuteAsync( UpdateMyTestGenderParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/UpdateUserByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/UpdateUserByIdHandler.verified.cs index 733d3253..6cce934e 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/UpdateUserByIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WOPD/src/DemoSample.Domain/Handlers/Users/UpdateUserByIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Update user by id. /// Operation: UpdateUserById. /// -public class UpdateUserByIdHandler : IUpdateUserByIdHandler +public sealed class UpdateUserByIdHandler : IUpdateUserByIdHandler { public Task ExecuteAsync( UpdateUserByIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Accounts/SetAccountNameHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Accounts/SetAccountNameHandler.verified.cs index 74011829..8b605fdd 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Accounts/SetAccountNameHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Accounts/SetAccountNameHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Set name of account. /// Operation: SetAccountName. /// -public class SetAccountNameHandler : ISetAccountNameHandler +public sealed class SetAccountNameHandler : ISetAccountNameHandler { public Task ExecuteAsync( SetAccountNameParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Accounts/UpdateAccountNameHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Accounts/UpdateAccountNameHandler.verified.cs index f16f7b71..88abc05f 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Accounts/UpdateAccountNameHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Accounts/UpdateAccountNameHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Update name of account. /// Operation: UpdateAccountName. /// -public class UpdateAccountNameHandler : IUpdateAccountNameHandler +public sealed class UpdateAccountNameHandler : IUpdateAccountNameHandler { public Task ExecuteAsync( UpdateAccountNameParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Addresses/GetAddressesByPostalCodesHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Addresses/GetAddressesByPostalCodesHandler.verified.cs index 11e35eb5..4abbd334 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Addresses/GetAddressesByPostalCodesHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Addresses/GetAddressesByPostalCodesHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get addresses by postal code. /// Operation: GetAddressesByPostalCodes. /// -public class GetAddressesByPostalCodesHandler : IGetAddressesByPostalCodesHandler +public sealed class GetAddressesByPostalCodesHandler : IGetAddressesByPostalCodesHandler { public Task ExecuteAsync( GetAddressesByPostalCodesParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/EventArgs/GetEventArgByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/EventArgs/GetEventArgByIdHandler.verified.cs index 26d122c2..3743ebb5 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/EventArgs/GetEventArgByIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/EventArgs/GetEventArgByIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get EventArgs By Id. /// Operation: GetEventArgById. /// -public class GetEventArgByIdHandler : IGetEventArgByIdHandler +public sealed class GetEventArgByIdHandler : IGetEventArgByIdHandler { public Task ExecuteAsync( GetEventArgByIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/EventArgs/GetEventArgsHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/EventArgs/GetEventArgsHandler.verified.cs index 871231a4..752d7e5f 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/EventArgs/GetEventArgsHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/EventArgs/GetEventArgsHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get EventArgs List. /// Operation: GetEventArgs. /// -public class GetEventArgsHandler : IGetEventArgsHandler +public sealed class GetEventArgsHandler : IGetEventArgsHandler { public Task ExecuteAsync( CancellationToken cancellationToken = default) diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Files/GetFileByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Files/GetFileByIdHandler.verified.cs index c5b768bb..c8bdba06 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Files/GetFileByIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Files/GetFileByIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get File By Id. /// Operation: GetFileById. /// -public class GetFileByIdHandler : IGetFileByIdHandler +public sealed class GetFileByIdHandler : IGetFileByIdHandler { public Task ExecuteAsync( GetFileByIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Files/UploadMultiFilesAsFormDataHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Files/UploadMultiFilesAsFormDataHandler.verified.cs index c9b60425..22a0cac2 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Files/UploadMultiFilesAsFormDataHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Files/UploadMultiFilesAsFormDataHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Upload multi files as form data. /// Operation: UploadMultiFilesAsFormData. /// -public class UploadMultiFilesAsFormDataHandler : IUploadMultiFilesAsFormDataHandler +public sealed class UploadMultiFilesAsFormDataHandler : IUploadMultiFilesAsFormDataHandler { public Task ExecuteAsync( UploadMultiFilesAsFormDataParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Files/UploadSingleFileAsFormDataHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Files/UploadSingleFileAsFormDataHandler.verified.cs index 30b7bf72..3d3620f3 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Files/UploadSingleFileAsFormDataHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Files/UploadSingleFileAsFormDataHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Upload a file as OctetStream. /// Operation: UploadSingleFileAsFormData. /// -public class UploadSingleFileAsFormDataHandler : IUploadSingleFileAsFormDataHandler +public sealed class UploadSingleFileAsFormDataHandler : IUploadSingleFileAsFormDataHandler { public Task ExecuteAsync( UploadSingleFileAsFormDataParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Files/UploadSingleObjectWithFileAsFormDataHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Files/UploadSingleObjectWithFileAsFormDataHandler.verified.cs index bea71e5c..c13a77f3 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Files/UploadSingleObjectWithFileAsFormDataHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Files/UploadSingleObjectWithFileAsFormDataHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Upload a file as FormData. /// Operation: UploadSingleObjectWithFileAsFormData. /// -public class UploadSingleObjectWithFileAsFormDataHandler : IUploadSingleObjectWithFileAsFormDataHandler +public sealed class UploadSingleObjectWithFileAsFormDataHandler : IUploadSingleObjectWithFileAsFormDataHandler { public Task ExecuteAsync( UploadSingleObjectWithFileAsFormDataParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Files/UploadSingleObjectWithFilesAsFormDataHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Files/UploadSingleObjectWithFilesAsFormDataHandler.verified.cs index 2cbf5d1f..523ac472 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Files/UploadSingleObjectWithFilesAsFormDataHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Files/UploadSingleObjectWithFilesAsFormDataHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Upload files as FormData. /// Operation: UploadSingleObjectWithFilesAsFormData. /// -public class UploadSingleObjectWithFilesAsFormDataHandler : IUploadSingleObjectWithFilesAsFormDataHandler +public sealed class UploadSingleObjectWithFilesAsFormDataHandler : IUploadSingleObjectWithFilesAsFormDataHandler { public Task ExecuteAsync( UploadSingleObjectWithFilesAsFormDataParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Items/CreateItemHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Items/CreateItemHandler.verified.cs index f7bc0b7a..fee1a3cb 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Items/CreateItemHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Items/CreateItemHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Create a new item. /// Operation: CreateItem. /// -public class CreateItemHandler : ICreateItemHandler +public sealed class CreateItemHandler : ICreateItemHandler { public Task ExecuteAsync( CreateItemParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Items/UpdateItemHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Items/UpdateItemHandler.verified.cs index ab540578..da7633b7 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Items/UpdateItemHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Items/UpdateItemHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Updates an item. /// Operation: UpdateItem. /// -public class UpdateItemHandler : IUpdateItemHandler +public sealed class UpdateItemHandler : IUpdateItemHandler { public Task ExecuteAsync( UpdateItemParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Orders/GetOrderByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Orders/GetOrderByIdHandler.verified.cs index bb191095..3fdfde0d 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Orders/GetOrderByIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Orders/GetOrderByIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get order by id. /// Operation: GetOrderById. /// -public class GetOrderByIdHandler : IGetOrderByIdHandler +public sealed class GetOrderByIdHandler : IGetOrderByIdHandler { public Task ExecuteAsync( GetOrderByIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Orders/GetOrdersHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Orders/GetOrdersHandler.verified.cs index 0a6a1735..7f0c3d70 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Orders/GetOrdersHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Orders/GetOrdersHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get orders. /// Operation: GetOrders. /// -public class GetOrdersHandler : IGetOrdersHandler +public sealed class GetOrdersHandler : IGetOrdersHandler { public Task ExecuteAsync( GetOrdersParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Orders/PatchOrdersIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Orders/PatchOrdersIdHandler.verified.cs index b88929d7..d5182051 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Orders/PatchOrdersIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Orders/PatchOrdersIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Update part of order by id. /// Operation: PatchOrdersId. /// -public class PatchOrdersIdHandler : IPatchOrdersIdHandler +public sealed class PatchOrdersIdHandler : IPatchOrdersIdHandler { public Task ExecuteAsync( PatchOrdersIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/RouteWithDash/GetRouteWithDashHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/RouteWithDash/GetRouteWithDashHandler.verified.cs index 28de0339..bea4ca84 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/RouteWithDash/GetRouteWithDashHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/RouteWithDash/GetRouteWithDashHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Your GET endpoint. /// Operation: GetRouteWithDash. /// -public class GetRouteWithDashHandler : IGetRouteWithDashHandler +public sealed class GetRouteWithDashHandler : IGetRouteWithDashHandler { public Task ExecuteAsync( CancellationToken cancellationToken = default) diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Tasks/GetTasksHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Tasks/GetTasksHandler.verified.cs index 6f5a039e..85164289 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Tasks/GetTasksHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Tasks/GetTasksHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Returns tasks. /// Operation: GetTasks. /// -public class GetTasksHandler : IGetTasksHandler +public sealed class GetTasksHandler : IGetTasksHandler { public Task ExecuteAsync( CancellationToken cancellationToken = default) diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/DeleteUserByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/DeleteUserByIdHandler.verified.cs index 43b0d40c..5c13caa0 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/DeleteUserByIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/DeleteUserByIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Delete user by id. /// Operation: DeleteUserById. /// -public class DeleteUserByIdHandler : IDeleteUserByIdHandler +public sealed class DeleteUserByIdHandler : IDeleteUserByIdHandler { public Task ExecuteAsync( DeleteUserByIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/GetUserByEmailHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/GetUserByEmailHandler.verified.cs index ea1d73bf..0a8f38b2 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/GetUserByEmailHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/GetUserByEmailHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get user by email. /// Operation: GetUserByEmail. /// -public class GetUserByEmailHandler : IGetUserByEmailHandler +public sealed class GetUserByEmailHandler : IGetUserByEmailHandler { public Task ExecuteAsync( GetUserByEmailParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/GetUserByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/GetUserByIdHandler.verified.cs index a79a6d74..6e0cca60 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/GetUserByIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/GetUserByIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get user by id. /// Operation: GetUserById. /// -public class GetUserByIdHandler : IGetUserByIdHandler +public sealed class GetUserByIdHandler : IGetUserByIdHandler { public Task ExecuteAsync( GetUserByIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/GetUsersHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/GetUsersHandler.verified.cs index 1cec955a..61b10ff7 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/GetUsersHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/GetUsersHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get all users. /// Operation: GetUsers. /// -public class GetUsersHandler : IGetUsersHandler +public sealed class GetUsersHandler : IGetUsersHandler { public Task ExecuteAsync( CancellationToken cancellationToken = default) diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/PostUserHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/PostUserHandler.verified.cs index cd9593f7..f5803306 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/PostUserHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/PostUserHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Create a new user. /// Operation: PostUser. /// -public class PostUserHandler : IPostUserHandler +public sealed class PostUserHandler : IPostUserHandler { public Task ExecuteAsync( PostUserParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/UpdateMyTestGenderHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/UpdateMyTestGenderHandler.verified.cs index 335364a9..0f82a90b 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/UpdateMyTestGenderHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/UpdateMyTestGenderHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Update gender on a user. /// Operation: UpdateMyTestGender. /// -public class UpdateMyTestGenderHandler : IUpdateMyTestGenderHandler +public sealed class UpdateMyTestGenderHandler : IUpdateMyTestGenderHandler { public Task ExecuteAsync( UpdateMyTestGenderParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/UpdateUserByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/UpdateUserByIdHandler.verified.cs index 733d3253..6cce934e 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/UpdateUserByIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/DemoSample/VerifyServerAll/Mvc_WPD/src/DemoSample.Domain/Handlers/Users/UpdateUserByIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Update user by id. /// Operation: UpdateUserById. /// -public class UpdateUserByIdHandler : IUpdateUserByIdHandler +public sealed class UpdateUserByIdHandler : IUpdateUserByIdHandler { public Task ExecuteAsync( UpdateUserByIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExAllResponseTypes/VerifyServerAll/Mvc_WOPD/src/ExAllResponseTypes.Domain/Handlers/Example/GetExampleHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExAllResponseTypes/VerifyServerAll/Mvc_WOPD/src/ExAllResponseTypes.Domain/Handlers/Example/GetExampleHandler.verified.cs index f8659325..c31825b3 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExAllResponseTypes/VerifyServerAll/Mvc_WOPD/src/ExAllResponseTypes.Domain/Handlers/Example/GetExampleHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExAllResponseTypes/VerifyServerAll/Mvc_WOPD/src/ExAllResponseTypes.Domain/Handlers/Example/GetExampleHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Example endpoint. /// Operation: GetExample. /// -public class GetExampleHandler : IGetExampleHandler +public sealed class GetExampleHandler : IGetExampleHandler { public Task ExecuteAsync( GetExampleParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExAllResponseTypes/VerifyServerAll/Mvc_WPD/src/ExAllResponseTypes.Domain/Handlers/Example/GetExampleHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExAllResponseTypes/VerifyServerAll/Mvc_WPD/src/ExAllResponseTypes.Domain/Handlers/Example/GetExampleHandler.verified.cs index f8659325..c31825b3 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExAllResponseTypes/VerifyServerAll/Mvc_WPD/src/ExAllResponseTypes.Domain/Handlers/Example/GetExampleHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExAllResponseTypes/VerifyServerAll/Mvc_WPD/src/ExAllResponseTypes.Domain/Handlers/Example/GetExampleHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Example endpoint. /// Operation: GetExample. /// -public class GetExampleHandler : IGetExampleHandler +public sealed class GetExampleHandler : IGetExampleHandler { public Task ExecuteAsync( GetExampleParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExGenericPagination/VerifyServerAll/Mvc_WOPD/src/ExGenericPagination.Domain/Handlers/Cats/GetCatsHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExGenericPagination/VerifyServerAll/Mvc_WOPD/src/ExGenericPagination.Domain/Handlers/Cats/GetCatsHandler.verified.cs index 5255bec4..e022cb29 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExGenericPagination/VerifyServerAll/Mvc_WOPD/src/ExGenericPagination.Domain/Handlers/Cats/GetCatsHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExGenericPagination/VerifyServerAll/Mvc_WOPD/src/ExGenericPagination.Domain/Handlers/Cats/GetCatsHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Find all cats. /// Operation: GetCats. /// -public class GetCatsHandler : IGetCatsHandler +public sealed class GetCatsHandler : IGetCatsHandler { public Task ExecuteAsync( GetCatsParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExGenericPagination/VerifyServerAll/Mvc_WOPD/src/ExGenericPagination.Domain/Handlers/Dogs/GetDogsHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExGenericPagination/VerifyServerAll/Mvc_WOPD/src/ExGenericPagination.Domain/Handlers/Dogs/GetDogsHandler.verified.cs index 9e41e6a7..b9bc2b62 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExGenericPagination/VerifyServerAll/Mvc_WOPD/src/ExGenericPagination.Domain/Handlers/Dogs/GetDogsHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExGenericPagination/VerifyServerAll/Mvc_WOPD/src/ExGenericPagination.Domain/Handlers/Dogs/GetDogsHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Find all dogs. /// Operation: GetDogs. /// -public class GetDogsHandler : IGetDogsHandler +public sealed class GetDogsHandler : IGetDogsHandler { public Task ExecuteAsync( GetDogsParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExGenericPagination/VerifyServerAll/Mvc_WPD/src/ExGenericPagination.Domain/Handlers/Cats/GetCatsHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExGenericPagination/VerifyServerAll/Mvc_WPD/src/ExGenericPagination.Domain/Handlers/Cats/GetCatsHandler.verified.cs index 5255bec4..e022cb29 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExGenericPagination/VerifyServerAll/Mvc_WPD/src/ExGenericPagination.Domain/Handlers/Cats/GetCatsHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExGenericPagination/VerifyServerAll/Mvc_WPD/src/ExGenericPagination.Domain/Handlers/Cats/GetCatsHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Find all cats. /// Operation: GetCats. /// -public class GetCatsHandler : IGetCatsHandler +public sealed class GetCatsHandler : IGetCatsHandler { public Task ExecuteAsync( GetCatsParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExGenericPagination/VerifyServerAll/Mvc_WPD/src/ExGenericPagination.Domain/Handlers/Dogs/GetDogsHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExGenericPagination/VerifyServerAll/Mvc_WPD/src/ExGenericPagination.Domain/Handlers/Dogs/GetDogsHandler.verified.cs index 9e41e6a7..b9bc2b62 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExGenericPagination/VerifyServerAll/Mvc_WPD/src/ExGenericPagination.Domain/Handlers/Dogs/GetDogsHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExGenericPagination/VerifyServerAll/Mvc_WPD/src/ExGenericPagination.Domain/Handlers/Dogs/GetDogsHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Find all dogs. /// Operation: GetDogs. /// -public class GetDogsHandler : IGetDogsHandler +public sealed class GetDogsHandler : IGetDogsHandler { public Task ExecuteAsync( GetDogsParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WOPD/src/ExNsWithTask.Domain/Handlers/EventArgs/GetEventArgByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WOPD/src/ExNsWithTask.Domain/Handlers/EventArgs/GetEventArgByIdHandler.verified.cs index 2f96253e..a067f189 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WOPD/src/ExNsWithTask.Domain/Handlers/EventArgs/GetEventArgByIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WOPD/src/ExNsWithTask.Domain/Handlers/EventArgs/GetEventArgByIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get EventArgs By Id. /// Operation: GetEventArgById. /// -public class GetEventArgByIdHandler : IGetEventArgByIdHandler +public sealed class GetEventArgByIdHandler : IGetEventArgByIdHandler { public Task ExecuteAsync( GetEventArgByIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WOPD/src/ExNsWithTask.Domain/Handlers/EventArgs/GetEventArgsHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WOPD/src/ExNsWithTask.Domain/Handlers/EventArgs/GetEventArgsHandler.verified.cs index ad8c8665..d2630d78 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WOPD/src/ExNsWithTask.Domain/Handlers/EventArgs/GetEventArgsHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WOPD/src/ExNsWithTask.Domain/Handlers/EventArgs/GetEventArgsHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get EventArgs List. /// Operation: GetEventArgs. /// -public class GetEventArgsHandler : IGetEventArgsHandler +public sealed class GetEventArgsHandler : IGetEventArgsHandler { public Task ExecuteAsync( CancellationToken cancellationToken = default) diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WOPD/src/ExNsWithTask.Domain/Handlers/Orders/GetOrderByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WOPD/src/ExNsWithTask.Domain/Handlers/Orders/GetOrderByIdHandler.verified.cs index f7f4a412..9adcc18d 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WOPD/src/ExNsWithTask.Domain/Handlers/Orders/GetOrderByIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WOPD/src/ExNsWithTask.Domain/Handlers/Orders/GetOrderByIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get order by id. /// Operation: GetOrderById. /// -public class GetOrderByIdHandler : IGetOrderByIdHandler +public sealed class GetOrderByIdHandler : IGetOrderByIdHandler { public Task ExecuteAsync( GetOrderByIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WOPD/src/ExNsWithTask.Domain/Handlers/Orders/GetOrdersHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WOPD/src/ExNsWithTask.Domain/Handlers/Orders/GetOrdersHandler.verified.cs index 26a1f595..478757f5 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WOPD/src/ExNsWithTask.Domain/Handlers/Orders/GetOrdersHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WOPD/src/ExNsWithTask.Domain/Handlers/Orders/GetOrdersHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get orders. /// Operation: GetOrders. /// -public class GetOrdersHandler : IGetOrdersHandler +public sealed class GetOrdersHandler : IGetOrdersHandler { public Task ExecuteAsync( GetOrdersParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WOPD/src/ExNsWithTask.Domain/Handlers/Tasks/GetTasksHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WOPD/src/ExNsWithTask.Domain/Handlers/Tasks/GetTasksHandler.verified.cs index f5f86e79..545b28eb 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WOPD/src/ExNsWithTask.Domain/Handlers/Tasks/GetTasksHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WOPD/src/ExNsWithTask.Domain/Handlers/Tasks/GetTasksHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Returns tasks. /// Operation: GetTasks. /// -public class GetTasksHandler : IGetTasksHandler +public sealed class GetTasksHandler : IGetTasksHandler { public Task ExecuteAsync( CancellationToken cancellationToken = default) diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WOPD/src/ExNsWithTask.Domain/Handlers/TestUnits/ListTestUnitsHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WOPD/src/ExNsWithTask.Domain/Handlers/TestUnits/ListTestUnitsHandler.verified.cs index 942fb53a..6bd97b95 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WOPD/src/ExNsWithTask.Domain/Handlers/TestUnits/ListTestUnitsHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WOPD/src/ExNsWithTask.Domain/Handlers/TestUnits/ListTestUnitsHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: List test units. /// Operation: ListTestUnits. /// -public class ListTestUnitsHandler : IListTestUnitsHandler +public sealed class ListTestUnitsHandler : IListTestUnitsHandler { public Task ExecuteAsync( ListTestUnitsParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WPD/src/ExNsWithTask.Domain/Handlers/EventArgs/GetEventArgByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WPD/src/ExNsWithTask.Domain/Handlers/EventArgs/GetEventArgByIdHandler.verified.cs index 2f96253e..a067f189 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WPD/src/ExNsWithTask.Domain/Handlers/EventArgs/GetEventArgByIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WPD/src/ExNsWithTask.Domain/Handlers/EventArgs/GetEventArgByIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get EventArgs By Id. /// Operation: GetEventArgById. /// -public class GetEventArgByIdHandler : IGetEventArgByIdHandler +public sealed class GetEventArgByIdHandler : IGetEventArgByIdHandler { public Task ExecuteAsync( GetEventArgByIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WPD/src/ExNsWithTask.Domain/Handlers/EventArgs/GetEventArgsHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WPD/src/ExNsWithTask.Domain/Handlers/EventArgs/GetEventArgsHandler.verified.cs index ad8c8665..d2630d78 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WPD/src/ExNsWithTask.Domain/Handlers/EventArgs/GetEventArgsHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WPD/src/ExNsWithTask.Domain/Handlers/EventArgs/GetEventArgsHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get EventArgs List. /// Operation: GetEventArgs. /// -public class GetEventArgsHandler : IGetEventArgsHandler +public sealed class GetEventArgsHandler : IGetEventArgsHandler { public Task ExecuteAsync( CancellationToken cancellationToken = default) diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WPD/src/ExNsWithTask.Domain/Handlers/Orders/GetOrderByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WPD/src/ExNsWithTask.Domain/Handlers/Orders/GetOrderByIdHandler.verified.cs index f7f4a412..9adcc18d 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WPD/src/ExNsWithTask.Domain/Handlers/Orders/GetOrderByIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WPD/src/ExNsWithTask.Domain/Handlers/Orders/GetOrderByIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get order by id. /// Operation: GetOrderById. /// -public class GetOrderByIdHandler : IGetOrderByIdHandler +public sealed class GetOrderByIdHandler : IGetOrderByIdHandler { public Task ExecuteAsync( GetOrderByIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WPD/src/ExNsWithTask.Domain/Handlers/Orders/GetOrdersHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WPD/src/ExNsWithTask.Domain/Handlers/Orders/GetOrdersHandler.verified.cs index 26a1f595..478757f5 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WPD/src/ExNsWithTask.Domain/Handlers/Orders/GetOrdersHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WPD/src/ExNsWithTask.Domain/Handlers/Orders/GetOrdersHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get orders. /// Operation: GetOrders. /// -public class GetOrdersHandler : IGetOrdersHandler +public sealed class GetOrdersHandler : IGetOrdersHandler { public Task ExecuteAsync( GetOrdersParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WPD/src/ExNsWithTask.Domain/Handlers/Tasks/GetTasksHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WPD/src/ExNsWithTask.Domain/Handlers/Tasks/GetTasksHandler.verified.cs index f5f86e79..545b28eb 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WPD/src/ExNsWithTask.Domain/Handlers/Tasks/GetTasksHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WPD/src/ExNsWithTask.Domain/Handlers/Tasks/GetTasksHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Returns tasks. /// Operation: GetTasks. /// -public class GetTasksHandler : IGetTasksHandler +public sealed class GetTasksHandler : IGetTasksHandler { public Task ExecuteAsync( CancellationToken cancellationToken = default) diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WPD/src/ExNsWithTask.Domain/Handlers/TestUnits/ListTestUnitsHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WPD/src/ExNsWithTask.Domain/Handlers/TestUnits/ListTestUnitsHandler.verified.cs index 942fb53a..6bd97b95 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WPD/src/ExNsWithTask.Domain/Handlers/TestUnits/ListTestUnitsHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExNsWithTask/VerifyServerAll/Mvc_WPD/src/ExNsWithTask.Domain/Handlers/TestUnits/ListTestUnitsHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: List test units. /// Operation: ListTestUnits. /// -public class ListTestUnitsHandler : IListTestUnitsHandler +public sealed class ListTestUnitsHandler : IListTestUnitsHandler { public Task ExecuteAsync( ListTestUnitsParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WOPD/src/ExUsers.Domain/Handlers/Users/DeleteUserByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WOPD/src/ExUsers.Domain/Handlers/Users/DeleteUserByIdHandler.verified.cs index 690df3b2..6c6c9c1c 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WOPD/src/ExUsers.Domain/Handlers/Users/DeleteUserByIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WOPD/src/ExUsers.Domain/Handlers/Users/DeleteUserByIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Delete user by id. /// Operation: DeleteUserById. /// -public class DeleteUserByIdHandler : IDeleteUserByIdHandler +public sealed class DeleteUserByIdHandler : IDeleteUserByIdHandler { public Task ExecuteAsync( DeleteUserByIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WOPD/src/ExUsers.Domain/Handlers/Users/GetUserByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WOPD/src/ExUsers.Domain/Handlers/Users/GetUserByIdHandler.verified.cs index 99b9377a..9997245c 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WOPD/src/ExUsers.Domain/Handlers/Users/GetUserByIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WOPD/src/ExUsers.Domain/Handlers/Users/GetUserByIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get user by id. /// Operation: GetUserById. /// -public class GetUserByIdHandler : IGetUserByIdHandler +public sealed class GetUserByIdHandler : IGetUserByIdHandler { public Task ExecuteAsync( GetUserByIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WOPD/src/ExUsers.Domain/Handlers/Users/GetUsersHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WOPD/src/ExUsers.Domain/Handlers/Users/GetUsersHandler.verified.cs index f88ae3dc..03bdac52 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WOPD/src/ExUsers.Domain/Handlers/Users/GetUsersHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WOPD/src/ExUsers.Domain/Handlers/Users/GetUsersHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get all users. /// Operation: GetUsers. /// -public class GetUsersHandler : IGetUsersHandler +public sealed class GetUsersHandler : IGetUsersHandler { public Task ExecuteAsync( CancellationToken cancellationToken = default) diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WOPD/src/ExUsers.Domain/Handlers/Users/PostUserHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WOPD/src/ExUsers.Domain/Handlers/Users/PostUserHandler.verified.cs index c4db3890..db52ec5a 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WOPD/src/ExUsers.Domain/Handlers/Users/PostUserHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WOPD/src/ExUsers.Domain/Handlers/Users/PostUserHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Create a new user. /// Operation: PostUser. /// -public class PostUserHandler : IPostUserHandler +public sealed class PostUserHandler : IPostUserHandler { public Task ExecuteAsync( PostUserParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WOPD/src/ExUsers.Domain/Handlers/Users/UpdateUserByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WOPD/src/ExUsers.Domain/Handlers/Users/UpdateUserByIdHandler.verified.cs index 2c6c3538..e58866d1 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WOPD/src/ExUsers.Domain/Handlers/Users/UpdateUserByIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WOPD/src/ExUsers.Domain/Handlers/Users/UpdateUserByIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Update user by id. /// Operation: UpdateUserById. /// -public class UpdateUserByIdHandler : IUpdateUserByIdHandler +public sealed class UpdateUserByIdHandler : IUpdateUserByIdHandler { public Task ExecuteAsync( UpdateUserByIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WPD/src/ExUsers.Domain/Handlers/Users/DeleteUserByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WPD/src/ExUsers.Domain/Handlers/Users/DeleteUserByIdHandler.verified.cs index 690df3b2..6c6c9c1c 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WPD/src/ExUsers.Domain/Handlers/Users/DeleteUserByIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WPD/src/ExUsers.Domain/Handlers/Users/DeleteUserByIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Delete user by id. /// Operation: DeleteUserById. /// -public class DeleteUserByIdHandler : IDeleteUserByIdHandler +public sealed class DeleteUserByIdHandler : IDeleteUserByIdHandler { public Task ExecuteAsync( DeleteUserByIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WPD/src/ExUsers.Domain/Handlers/Users/GetUserByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WPD/src/ExUsers.Domain/Handlers/Users/GetUserByIdHandler.verified.cs index 99b9377a..9997245c 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WPD/src/ExUsers.Domain/Handlers/Users/GetUserByIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WPD/src/ExUsers.Domain/Handlers/Users/GetUserByIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get user by id. /// Operation: GetUserById. /// -public class GetUserByIdHandler : IGetUserByIdHandler +public sealed class GetUserByIdHandler : IGetUserByIdHandler { public Task ExecuteAsync( GetUserByIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WPD/src/ExUsers.Domain/Handlers/Users/GetUsersHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WPD/src/ExUsers.Domain/Handlers/Users/GetUsersHandler.verified.cs index f88ae3dc..03bdac52 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WPD/src/ExUsers.Domain/Handlers/Users/GetUsersHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WPD/src/ExUsers.Domain/Handlers/Users/GetUsersHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Get all users. /// Operation: GetUsers. /// -public class GetUsersHandler : IGetUsersHandler +public sealed class GetUsersHandler : IGetUsersHandler { public Task ExecuteAsync( CancellationToken cancellationToken = default) diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WPD/src/ExUsers.Domain/Handlers/Users/PostUserHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WPD/src/ExUsers.Domain/Handlers/Users/PostUserHandler.verified.cs index c4db3890..db52ec5a 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WPD/src/ExUsers.Domain/Handlers/Users/PostUserHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WPD/src/ExUsers.Domain/Handlers/Users/PostUserHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Create a new user. /// Operation: PostUser. /// -public class PostUserHandler : IPostUserHandler +public sealed class PostUserHandler : IPostUserHandler { public Task ExecuteAsync( PostUserParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WPD/src/ExUsers.Domain/Handlers/Users/UpdateUserByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WPD/src/ExUsers.Domain/Handlers/Users/UpdateUserByIdHandler.verified.cs index 2c6c3538..e58866d1 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WPD/src/ExUsers.Domain/Handlers/Users/UpdateUserByIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/ExUsers/VerifyServerAll/Mvc_WPD/src/ExUsers.Domain/Handlers/Users/UpdateUserByIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Update user by id. /// Operation: UpdateUserById. /// -public class UpdateUserByIdHandler : IUpdateUserByIdHandler +public sealed class UpdateUserByIdHandler : IUpdateUserByIdHandler { public Task ExecuteAsync( UpdateUserByIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/PetStore/VerifyServerAll/Mvc_WOPD/src/PetStore.Domain/Handlers/Pets/CreatePetsHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/PetStore/VerifyServerAll/Mvc_WOPD/src/PetStore.Domain/Handlers/Pets/CreatePetsHandler.verified.cs index 0de06e54..b4c7e169 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/PetStore/VerifyServerAll/Mvc_WOPD/src/PetStore.Domain/Handlers/Pets/CreatePetsHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/PetStore/VerifyServerAll/Mvc_WOPD/src/PetStore.Domain/Handlers/Pets/CreatePetsHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Create a pet. /// Operation: CreatePets. /// -public class CreatePetsHandler : ICreatePetsHandler +public sealed class CreatePetsHandler : ICreatePetsHandler { public Task ExecuteAsync( CancellationToken cancellationToken = default) diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/PetStore/VerifyServerAll/Mvc_WOPD/src/PetStore.Domain/Handlers/Pets/ListPetsHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/PetStore/VerifyServerAll/Mvc_WOPD/src/PetStore.Domain/Handlers/Pets/ListPetsHandler.verified.cs index 38a9dfb7..7be16ed7 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/PetStore/VerifyServerAll/Mvc_WOPD/src/PetStore.Domain/Handlers/Pets/ListPetsHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/PetStore/VerifyServerAll/Mvc_WOPD/src/PetStore.Domain/Handlers/Pets/ListPetsHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: List all pets. /// Operation: ListPets. /// -public class ListPetsHandler : IListPetsHandler +public sealed class ListPetsHandler : IListPetsHandler { public Task ExecuteAsync( ListPetsParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/PetStore/VerifyServerAll/Mvc_WOPD/src/PetStore.Domain/Handlers/Pets/ShowPetByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/PetStore/VerifyServerAll/Mvc_WOPD/src/PetStore.Domain/Handlers/Pets/ShowPetByIdHandler.verified.cs index 578ba108..5147bd11 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/PetStore/VerifyServerAll/Mvc_WOPD/src/PetStore.Domain/Handlers/Pets/ShowPetByIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/PetStore/VerifyServerAll/Mvc_WOPD/src/PetStore.Domain/Handlers/Pets/ShowPetByIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Info for a specific pet. /// Operation: ShowPetById. /// -public class ShowPetByIdHandler : IShowPetByIdHandler +public sealed class ShowPetByIdHandler : IShowPetByIdHandler { public Task ExecuteAsync( ShowPetByIdParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/PetStore/VerifyServerAll/Mvc_WPD/src/PetStore.Domain/Handlers/Pets/CreatePetsHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/PetStore/VerifyServerAll/Mvc_WPD/src/PetStore.Domain/Handlers/Pets/CreatePetsHandler.verified.cs index 0de06e54..b4c7e169 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/PetStore/VerifyServerAll/Mvc_WPD/src/PetStore.Domain/Handlers/Pets/CreatePetsHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/PetStore/VerifyServerAll/Mvc_WPD/src/PetStore.Domain/Handlers/Pets/CreatePetsHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Create a pet. /// Operation: CreatePets. /// -public class CreatePetsHandler : ICreatePetsHandler +public sealed class CreatePetsHandler : ICreatePetsHandler { public Task ExecuteAsync( CancellationToken cancellationToken = default) diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/PetStore/VerifyServerAll/Mvc_WPD/src/PetStore.Domain/Handlers/Pets/ListPetsHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/PetStore/VerifyServerAll/Mvc_WPD/src/PetStore.Domain/Handlers/Pets/ListPetsHandler.verified.cs index 38a9dfb7..7be16ed7 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/PetStore/VerifyServerAll/Mvc_WPD/src/PetStore.Domain/Handlers/Pets/ListPetsHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/PetStore/VerifyServerAll/Mvc_WPD/src/PetStore.Domain/Handlers/Pets/ListPetsHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: List all pets. /// Operation: ListPets. /// -public class ListPetsHandler : IListPetsHandler +public sealed class ListPetsHandler : IListPetsHandler { public Task ExecuteAsync( ListPetsParameters parameters, diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/PetStore/VerifyServerAll/Mvc_WPD/src/PetStore.Domain/Handlers/Pets/ShowPetByIdHandler.verified.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/PetStore/VerifyServerAll/Mvc_WPD/src/PetStore.Domain/Handlers/Pets/ShowPetByIdHandler.verified.cs index 578ba108..5147bd11 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/PetStore/VerifyServerAll/Mvc_WPD/src/PetStore.Domain/Handlers/Pets/ShowPetByIdHandler.verified.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/Scenarios/PetStore/VerifyServerAll/Mvc_WPD/src/PetStore.Domain/Handlers/Pets/ShowPetByIdHandler.verified.cs @@ -5,7 +5,7 @@ /// Description: Info for a specific pet. /// Operation: ShowPetById. /// -public class ShowPetByIdHandler : IShowPetByIdHandler +public sealed class ShowPetByIdHandler : IShowPetByIdHandler { public Task ExecuteAsync( ShowPetByIdParameters parameters, From c9143512517aa14f6baa28c50ac625c9007080ac Mon Sep 17 00:00:00 2001 From: David Kallesen Date: Thu, 8 Aug 2024 13:10:18 +0200 Subject: [PATCH 3/3] feat: remove ConfigureOptions for minimal api --- .../ProjectGenerator/ServerDomainGenerator.cs | 40 ------------------- 1 file changed, 40 deletions(-) diff --git a/src/Atc.Rest.ApiGenerator.Framework.Minimal/ProjectGenerator/ServerDomainGenerator.cs b/src/Atc.Rest.ApiGenerator.Framework.Minimal/ProjectGenerator/ServerDomainGenerator.cs index 3b5ae9a1..1d9dd6ed 100644 --- a/src/Atc.Rest.ApiGenerator.Framework.Minimal/ProjectGenerator/ServerDomainGenerator.cs +++ b/src/Atc.Rest.ApiGenerator.Framework.Minimal/ProjectGenerator/ServerDomainGenerator.cs @@ -213,47 +213,10 @@ public void GenerateServiceCollectionExtensions() AlwaysBreakDownParameters: true, UseExpressionBody: false, Content: """ - services.ConfigureOptions(configuration); services.DefineHandlersAndServices(); return services; """); - var methodConfigureOptions = new MethodParameters( - DocumentationTags: null, - Attributes: null, - AccessModifiers.PublicStatic, - ReturnGenericTypeName: null, - ReturnTypeName: "void", - Name: "ConfigureOptions", - Parameters: - [ - new( - Attributes: null, - GenericTypeName: null, - IsGenericListType: false, - TypeName: "this IServiceCollection", - IsNullableType: false, - IsReferenceType: false, - Name: "services", - DefaultValue: null), - new( - Attributes: null, - GenericTypeName: null, - IsGenericListType: false, - TypeName: "IConfiguration", - IsNullableType: false, - IsReferenceType: false, - Name: "configuration", - DefaultValue: null), - ], - AlwaysBreakDownParameters: true, - UseExpressionBody: false, - Content: """ - services.Configure(options => configuration.GetRequiredSection(nameof(ServiceOptions)).Bind(options)); - services.Configure(options => configuration.GetRequiredSection(nameof(EnvironmentOptions)).Bind(options)); - services.Configure(options => configuration.GetRequiredSection(nameof(NamingOptions)).Bind(options)); - """); - var methodDefineHandlersAndServices = new MethodParameters( DocumentationTags: null, Attributes: null, @@ -293,7 +256,6 @@ public void GenerateServiceCollectionExtensions() Methods: [ methodConfigureDomainServices, - methodConfigureOptions, methodDefineHandlersAndServices, ], GenerateToStringMethod: false); @@ -319,8 +281,6 @@ public void MaintainGlobalUsings( { "System.CodeDom.Compiler", "System.Diagnostics.CodeAnalysis", - "Atc.Azure.Options", - "Atc.Azure.Options.Environment", "Microsoft.Extensions.Configuration", "Microsoft.Extensions.DependencyInjection", };