From 4dc5508d910ba1b98ac553c6e42e0208cb4eea4b Mon Sep 17 00:00:00 2001 From: Hamed Shirbandi Date: Thu, 5 Sep 2024 00:48:13 +0200 Subject: [PATCH] fix: validators bug --- .../Infrastructure/Extensions/InfrastructureExtensions.cs | 3 +-- .../UseCases/Boards/AddBoard/AddBoardValidation.cs | 3 +-- .../UseCases/Boards/DeleteBoard/DeleteBoardValidation.cs | 3 +-- .../UseCases/Boards/UpdateBoard/UpdateBoardValidation.cs | 3 +-- .../UseCases/Cards/AddCard/AddCardValidation.cs | 3 +-- .../UseCases/Cards/DeleteCard/DeleteCardValidation.cs | 3 +-- .../UseCases/Cards/UpdateCard/UpdateCardValidation.cs | 3 +-- .../UseCases/RegisterUser/RegisterUserValidation.cs | 3 +-- .../Identity.Api/UseCases/UpdateUser/UpdateUserValidation.cs | 3 +-- .../Api/Identity.Api/UseCases/UserLogin/UserLoginValidation.cs | 3 +-- .../Organizations/AddOrganization/AddOrganizationValidation.cs | 3 +-- .../DeleteOrganization/DeleteOrganizationValidation.cs | 3 +-- .../UpdateOrganization/UpdateOrganizationValidation.cs | 3 +-- .../UseCases/Owners/RegisterOwner/RegisterOwnerValidation.cs | 3 +-- .../Owners/UpdateOwnerProfile/UpdateOwnerProfileValidation.cs | 3 +-- .../UseCases/Projects/AddProject/AddProjectValidation.cs | 3 +-- .../UseCases/Projects/DeleteProject/DeleteProjectValidation.cs | 3 +-- .../UseCases/Projects/UpdateProject/UpdateProjectValidation.cs | 3 +-- .../UseCases/Comments/AddComment/AddCommentValidation.cs | 3 +-- .../UseCases/Comments/DeleteComment/DeleteCommentValidation.cs | 3 +-- .../UseCases/Comments/UpdateComment/UpdateCommentValidation.cs | 3 +-- .../UseCases/Tasks/AddTask/AddTaskValidation.cs | 3 +-- .../UseCases/Tasks/DeleteTask/DeleteTaskValidation.cs | 3 +-- .../MoveTaskToAnotherCard/MoveTaskToAnotherCardValidation.cs | 3 +-- .../UseCases/Tasks/UpdateTask/UpdateTaskValidation.cs | 3 +-- src/6-Build/Build.cs | 2 +- 26 files changed, 26 insertions(+), 51 deletions(-) diff --git a/src/1-BuildingBlocks/Infrastructure/Extensions/InfrastructureExtensions.cs b/src/1-BuildingBlocks/Infrastructure/Extensions/InfrastructureExtensions.cs index ad5e782db..8e59ea966 100644 --- a/src/1-BuildingBlocks/Infrastructure/Extensions/InfrastructureExtensions.cs +++ b/src/1-BuildingBlocks/Infrastructure/Extensions/InfrastructureExtensions.cs @@ -22,11 +22,10 @@ public static void AddBuildingBlocksInfrastructure( Type validatorAssemblyMarkerType ) { + services.AddInMemoryBus(handlerAssemblyMarkerType); services.AddApplicationExceptionHandlers(); services.AddApplicationBehaviors(validatorAssemblyMarkerType); services.AddDomainNotificationHandler(); - - services.AddInMemoryBus(handlerAssemblyMarkerType); services.AddMessageBus(configuration, consumerAssemblyMarkerType); services.AddRedisEventStoreService(); } diff --git a/src/2-Services/Boards/Api/Boards.Write.Api/UseCases/Boards/AddBoard/AddBoardValidation.cs b/src/2-Services/Boards/Api/Boards.Write.Api/UseCases/Boards/AddBoard/AddBoardValidation.cs index ee3670365..f0347d0fb 100644 --- a/src/2-Services/Boards/Api/Boards.Write.Api/UseCases/Boards/AddBoard/AddBoardValidation.cs +++ b/src/2-Services/Boards/Api/Boards.Write.Api/UseCases/Boards/AddBoard/AddBoardValidation.cs @@ -3,8 +3,7 @@ namespace TaskoMask.Services.Boards.Write.Api.UseCases.Boards.AddBoard; -public abstract class AddBoardValidation : AbstractValidator - where TRequest : AddBoardRequest +public sealed class AddBoardValidation : AbstractValidator { public AddBoardValidation() { diff --git a/src/2-Services/Boards/Api/Boards.Write.Api/UseCases/Boards/DeleteBoard/DeleteBoardValidation.cs b/src/2-Services/Boards/Api/Boards.Write.Api/UseCases/Boards/DeleteBoard/DeleteBoardValidation.cs index 2f6eee3fe..15176dfb6 100644 --- a/src/2-Services/Boards/Api/Boards.Write.Api/UseCases/Boards/DeleteBoard/DeleteBoardValidation.cs +++ b/src/2-Services/Boards/Api/Boards.Write.Api/UseCases/Boards/DeleteBoard/DeleteBoardValidation.cs @@ -2,8 +2,7 @@ namespace TaskoMask.Services.Boards.Write.Api.UseCases.Boards.DeleteBoard; -public abstract class DeleteBoardValidation : AbstractValidator - where TRequest : DeleteBoardRequest +public sealed class DeleteBoardValidation : AbstractValidator { public DeleteBoardValidation() { } } diff --git a/src/2-Services/Boards/Api/Boards.Write.Api/UseCases/Boards/UpdateBoard/UpdateBoardValidation.cs b/src/2-Services/Boards/Api/Boards.Write.Api/UseCases/Boards/UpdateBoard/UpdateBoardValidation.cs index fadbc1756..836ac7e63 100644 --- a/src/2-Services/Boards/Api/Boards.Write.Api/UseCases/Boards/UpdateBoard/UpdateBoardValidation.cs +++ b/src/2-Services/Boards/Api/Boards.Write.Api/UseCases/Boards/UpdateBoard/UpdateBoardValidation.cs @@ -3,8 +3,7 @@ namespace TaskoMask.Services.Boards.Write.Api.UseCases.Boards.UpdateBoard; -public abstract class UpdateBoardValidation : AbstractValidator - where TRequest : UpdateBoardRequest +public sealed class UpdateBoardValidation : AbstractValidator { public UpdateBoardValidation() { diff --git a/src/2-Services/Boards/Api/Boards.Write.Api/UseCases/Cards/AddCard/AddCardValidation.cs b/src/2-Services/Boards/Api/Boards.Write.Api/UseCases/Cards/AddCard/AddCardValidation.cs index 0432870d6..2d8c6ca8a 100644 --- a/src/2-Services/Boards/Api/Boards.Write.Api/UseCases/Cards/AddCard/AddCardValidation.cs +++ b/src/2-Services/Boards/Api/Boards.Write.Api/UseCases/Cards/AddCard/AddCardValidation.cs @@ -2,8 +2,7 @@ namespace TaskoMask.Services.Boards.Write.Api.UseCases.Cards.AddCard; -public abstract class AddCardValidation : AbstractValidator - where TRequest : AddCardRequest +public sealed class AddCardValidation : AbstractValidator { public AddCardValidation() { } } diff --git a/src/2-Services/Boards/Api/Boards.Write.Api/UseCases/Cards/DeleteCard/DeleteCardValidation.cs b/src/2-Services/Boards/Api/Boards.Write.Api/UseCases/Cards/DeleteCard/DeleteCardValidation.cs index f00f1c4fd..944cd759a 100644 --- a/src/2-Services/Boards/Api/Boards.Write.Api/UseCases/Cards/DeleteCard/DeleteCardValidation.cs +++ b/src/2-Services/Boards/Api/Boards.Write.Api/UseCases/Cards/DeleteCard/DeleteCardValidation.cs @@ -2,8 +2,7 @@ namespace TaskoMask.Services.Boards.Write.Api.UseCases.Cards.DeleteCard; -public abstract class DeleteCardValidation : AbstractValidator - where TRequest : DeleteCardRequest +public sealed class DeleteCardValidation : AbstractValidator { public DeleteCardValidation() { } } diff --git a/src/2-Services/Boards/Api/Boards.Write.Api/UseCases/Cards/UpdateCard/UpdateCardValidation.cs b/src/2-Services/Boards/Api/Boards.Write.Api/UseCases/Cards/UpdateCard/UpdateCardValidation.cs index 025e5220f..ec7becd63 100644 --- a/src/2-Services/Boards/Api/Boards.Write.Api/UseCases/Cards/UpdateCard/UpdateCardValidation.cs +++ b/src/2-Services/Boards/Api/Boards.Write.Api/UseCases/Cards/UpdateCard/UpdateCardValidation.cs @@ -2,8 +2,7 @@ namespace TaskoMask.Services.Boards.Write.Api.UseCases.Cards.UpdateCard; -public abstract class UpdateCardValidation : AbstractValidator - where TRequest : UpdateCardRequest +public sealed class UpdateCardValidation : AbstractValidator { public UpdateCardValidation() { } } diff --git a/src/2-Services/Identity/Api/Identity.Api/UseCases/RegisterUser/RegisterUserValidation.cs b/src/2-Services/Identity/Api/Identity.Api/UseCases/RegisterUser/RegisterUserValidation.cs index ef0f82f8f..aacf950f1 100644 --- a/src/2-Services/Identity/Api/Identity.Api/UseCases/RegisterUser/RegisterUserValidation.cs +++ b/src/2-Services/Identity/Api/Identity.Api/UseCases/RegisterUser/RegisterUserValidation.cs @@ -2,8 +2,7 @@ namespace TaskoMask.Services.Identity.Api.UseCases.RegisterUser; -public abstract class RegisterUserValidation : AbstractValidator - where TRequest : RegisterUserRequest +public sealed class RegisterUserValidation : AbstractValidator { public RegisterUserValidation() { } } diff --git a/src/2-Services/Identity/Api/Identity.Api/UseCases/UpdateUser/UpdateUserValidation.cs b/src/2-Services/Identity/Api/Identity.Api/UseCases/UpdateUser/UpdateUserValidation.cs index addf3ecde..51bcbcea1 100644 --- a/src/2-Services/Identity/Api/Identity.Api/UseCases/UpdateUser/UpdateUserValidation.cs +++ b/src/2-Services/Identity/Api/Identity.Api/UseCases/UpdateUser/UpdateUserValidation.cs @@ -2,8 +2,7 @@ namespace TaskoMask.Services.Identity.Api.UseCases.UpdateUser; -public abstract class UpdateUserValidation : AbstractValidator - where TRequest : UpdateUserRequest +public sealed class UpdateUserValidation : AbstractValidator { public UpdateUserValidation() { } } diff --git a/src/2-Services/Identity/Api/Identity.Api/UseCases/UserLogin/UserLoginValidation.cs b/src/2-Services/Identity/Api/Identity.Api/UseCases/UserLogin/UserLoginValidation.cs index 00f47eddb..db5e1c704 100644 --- a/src/2-Services/Identity/Api/Identity.Api/UseCases/UserLogin/UserLoginValidation.cs +++ b/src/2-Services/Identity/Api/Identity.Api/UseCases/UserLogin/UserLoginValidation.cs @@ -2,8 +2,7 @@ namespace TaskoMask.Services.Identity.Api.UseCases.UserLogin; -public abstract class UserLoginValidation : AbstractValidator - where TRequest : UserLoginRequest +public sealed class UserLoginValidation : AbstractValidator { public UserLoginValidation() { } } diff --git a/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Organizations/AddOrganization/AddOrganizationValidation.cs b/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Organizations/AddOrganization/AddOrganizationValidation.cs index cdb7e71b6..44985d1a5 100644 --- a/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Organizations/AddOrganization/AddOrganizationValidation.cs +++ b/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Organizations/AddOrganization/AddOrganizationValidation.cs @@ -3,8 +3,7 @@ namespace TaskoMask.Services.Owners.Write.Api.UseCases.Organizations.AddOrganization; -public abstract class AddOrganizationValidation : AbstractValidator - where TRequest : AddOrganizationRequest +public sealed class AddOrganizationValidation : AbstractValidator { public AddOrganizationValidation() { diff --git a/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Organizations/DeleteOrganization/DeleteOrganizationValidation.cs b/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Organizations/DeleteOrganization/DeleteOrganizationValidation.cs index c7751372b..b77118731 100644 --- a/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Organizations/DeleteOrganization/DeleteOrganizationValidation.cs +++ b/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Organizations/DeleteOrganization/DeleteOrganizationValidation.cs @@ -2,8 +2,7 @@ namespace TaskoMask.Services.Owners.Write.Api.UseCases.Organizations.DeleteOrganization; -public abstract class DeleteOrganizationValidation : AbstractValidator - where TRequest : DeleteOrganizationRequest +public sealed class DeleteOrganizationValidation : AbstractValidator { public DeleteOrganizationValidation() { } } diff --git a/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Organizations/UpdateOrganization/UpdateOrganizationValidation.cs b/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Organizations/UpdateOrganization/UpdateOrganizationValidation.cs index 2a6f18e56..4269f937b 100644 --- a/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Organizations/UpdateOrganization/UpdateOrganizationValidation.cs +++ b/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Organizations/UpdateOrganization/UpdateOrganizationValidation.cs @@ -3,8 +3,7 @@ namespace TaskoMask.Services.Owners.Write.Api.UseCases.Organizations.UpdateOrganization; -public abstract class UpdateOrganizationValidation : AbstractValidator - where TRequest : UpdateOrganizationRequest +public sealed class UpdateOrganizationValidation : AbstractValidator { public UpdateOrganizationValidation() { diff --git a/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Owners/RegisterOwner/RegisterOwnerValidation.cs b/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Owners/RegisterOwner/RegisterOwnerValidation.cs index c5e5df712..3c24079d0 100644 --- a/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Owners/RegisterOwner/RegisterOwnerValidation.cs +++ b/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Owners/RegisterOwner/RegisterOwnerValidation.cs @@ -2,8 +2,7 @@ namespace TaskoMask.Services.Owners.Write.Api.UseCases.Owners.RegisterOwner; -public abstract class RegiserOwnerValidation : AbstractValidator - where TRequest : RegiserOwnerRequest +public sealed class RegiserOwnerValidation : AbstractValidator { public RegiserOwnerValidation() { } } diff --git a/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Owners/UpdateOwnerProfile/UpdateOwnerProfileValidation.cs b/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Owners/UpdateOwnerProfile/UpdateOwnerProfileValidation.cs index 27bdb4868..59c2d4721 100644 --- a/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Owners/UpdateOwnerProfile/UpdateOwnerProfileValidation.cs +++ b/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Owners/UpdateOwnerProfile/UpdateOwnerProfileValidation.cs @@ -2,8 +2,7 @@ namespace TaskoMask.Services.Owners.Write.Api.UseCases.Owners.UpdateOwnerProfile; -public abstract class UpdateOwnerProfileValidation : AbstractValidator - where TRequest : UpdateOwnerProfileRequest +public sealed class UpdateOwnerProfileValidation : AbstractValidator { public UpdateOwnerProfileValidation() { } } diff --git a/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Projects/AddProject/AddProjectValidation.cs b/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Projects/AddProject/AddProjectValidation.cs index b2ead2e40..755cde8e4 100644 --- a/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Projects/AddProject/AddProjectValidation.cs +++ b/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Projects/AddProject/AddProjectValidation.cs @@ -3,8 +3,7 @@ namespace TaskoMask.Services.Owners.Write.Api.UseCases.Projects.AddProject; -public abstract class AddProjectValidation : AbstractValidator - where TRequest : AddProjectRequest +public sealed class AddProjectValidation : AbstractValidator { public AddProjectValidation() { diff --git a/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Projects/DeleteProject/DeleteProjectValidation.cs b/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Projects/DeleteProject/DeleteProjectValidation.cs index 99fe7851f..9f9607470 100644 --- a/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Projects/DeleteProject/DeleteProjectValidation.cs +++ b/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Projects/DeleteProject/DeleteProjectValidation.cs @@ -2,8 +2,7 @@ namespace TaskoMask.Services.Owners.Write.Api.UseCases.Projects.DeleteProject; -public abstract class DeleteProjectValidation : AbstractValidator - where TRequest : DeleteProjectRequest +public sealed class DeleteProjectValidation : AbstractValidator { public DeleteProjectValidation() { } } diff --git a/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Projects/UpdateProject/UpdateProjectValidation.cs b/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Projects/UpdateProject/UpdateProjectValidation.cs index 7a94ede25..d2e4d1b4b 100644 --- a/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Projects/UpdateProject/UpdateProjectValidation.cs +++ b/src/2-Services/Owners/Api/Owners.Write.Api/UseCases/Projects/UpdateProject/UpdateProjectValidation.cs @@ -3,8 +3,7 @@ namespace TaskoMask.Services.Owners.Write.Api.UseCases.Projects.UpdateProject; -public abstract class UpdateProjectValidation : AbstractValidator - where TRequest : UpdateProjectRequest +public sealed class UpdateProjectValidation : AbstractValidator { public UpdateProjectValidation() { diff --git a/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Comments/AddComment/AddCommentValidation.cs b/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Comments/AddComment/AddCommentValidation.cs index 4a1606766..eef0cd614 100644 --- a/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Comments/AddComment/AddCommentValidation.cs +++ b/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Comments/AddComment/AddCommentValidation.cs @@ -2,8 +2,7 @@ namespace TaskoMask.Services.Tasks.Write.Api.UseCases.Comments.AddComment; -public abstract class AddCommentValidation : AbstractValidator - where TRequest : AddCommentRequest +public sealed class AddCommentValidation : AbstractValidator { public AddCommentValidation() { } } diff --git a/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Comments/DeleteComment/DeleteCommentValidation.cs b/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Comments/DeleteComment/DeleteCommentValidation.cs index 9c1371013..550104742 100644 --- a/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Comments/DeleteComment/DeleteCommentValidation.cs +++ b/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Comments/DeleteComment/DeleteCommentValidation.cs @@ -2,8 +2,7 @@ namespace TaskoMask.Services.Tasks.Write.Api.UseCases.Comments.DeleteComment; -public abstract class DeleteCommentValidation : AbstractValidator - where TRequest : DeleteCommentRequest +public sealed class DeleteCommentValidation : AbstractValidator { public DeleteCommentValidation() { } } diff --git a/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Comments/UpdateComment/UpdateCommentValidation.cs b/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Comments/UpdateComment/UpdateCommentValidation.cs index f33fc5d01..14b5e5840 100644 --- a/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Comments/UpdateComment/UpdateCommentValidation.cs +++ b/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Comments/UpdateComment/UpdateCommentValidation.cs @@ -2,8 +2,7 @@ namespace TaskoMask.Services.Tasks.Write.Api.UseCases.Comments.UpdateComment; -public abstract class UpdateCommentValidation : AbstractValidator - where TRequest : UpdateCommentRequest +public sealed class UpdateCommentValidation : AbstractValidator { public UpdateCommentValidation() { } } diff --git a/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Tasks/AddTask/AddTaskValidation.cs b/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Tasks/AddTask/AddTaskValidation.cs index cd941ea96..89f8b8721 100644 --- a/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Tasks/AddTask/AddTaskValidation.cs +++ b/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Tasks/AddTask/AddTaskValidation.cs @@ -3,8 +3,7 @@ namespace TaskoMask.Services.Tasks.Write.Api.UseCases.Tasks.AddTask; -public abstract class AddTaskValidation : AbstractValidator - where TRequest : AddTaskRequest +public sealed class AddTaskValidation : AbstractValidator { public AddTaskValidation() { diff --git a/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Tasks/DeleteTask/DeleteTaskValidation.cs b/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Tasks/DeleteTask/DeleteTaskValidation.cs index 35c5ad96a..33b50dbbf 100644 --- a/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Tasks/DeleteTask/DeleteTaskValidation.cs +++ b/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Tasks/DeleteTask/DeleteTaskValidation.cs @@ -2,8 +2,7 @@ namespace TaskoMask.Services.Tasks.Write.Api.UseCases.Tasks.DeleteTask; -public abstract class DeleteTaskValidation : AbstractValidator - where TRequest : DeleteTaskRequest +public sealed class DeleteTaskValidation : AbstractValidator { public DeleteTaskValidation() { } } diff --git a/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Tasks/MoveTaskToAnotherCard/MoveTaskToAnotherCardValidation.cs b/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Tasks/MoveTaskToAnotherCard/MoveTaskToAnotherCardValidation.cs index 840de4cad..91ddd2f48 100644 --- a/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Tasks/MoveTaskToAnotherCard/MoveTaskToAnotherCardValidation.cs +++ b/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Tasks/MoveTaskToAnotherCard/MoveTaskToAnotherCardValidation.cs @@ -2,8 +2,7 @@ namespace TaskoMask.Services.Tasks.Write.Api.UseCases.Tasks.MoveTaskToAnotherCard; -public abstract class MoveTaskToAnotherCardValidation : AbstractValidator - where TRequest : MoveTaskToAnotherCardRequest +public sealed class MoveTaskToAnotherCardValidation : AbstractValidator { public MoveTaskToAnotherCardValidation() { } diff --git a/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Tasks/UpdateTask/UpdateTaskValidation.cs b/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Tasks/UpdateTask/UpdateTaskValidation.cs index 31fa5edd7..422425774 100644 --- a/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Tasks/UpdateTask/UpdateTaskValidation.cs +++ b/src/2-Services/Tasks/Api/Tasks.Write.Api/UseCases/Tasks/UpdateTask/UpdateTaskValidation.cs @@ -3,8 +3,7 @@ namespace TaskoMask.Services.Tasks.Write.Api.UseCases.Tasks.UpdateTask; -public abstract class UpdateTaskValidation : AbstractValidator - where TRequest : UpdateTaskRequest +public sealed class UpdateTaskValidation : AbstractValidator { public UpdateTaskValidation() { diff --git a/src/6-Build/Build.cs b/src/6-Build/Build.cs index 75d74d8b1..00a6efca2 100644 --- a/src/6-Build/Build.cs +++ b/src/6-Build/Build.cs @@ -108,7 +108,7 @@ internal class Build : NukeBuild /// Then it will run dotnet format command to apply all the rules based on .editorconfig /// If there are any violations, it will try to fix them automatically. But some of them like namming rules should be done manualy /// In that case it will show you the file path and the reason of failure. - /// Run directyly : cmd> nuke Lint + /// Run directly : cmd> nuke Lint /// private Target Lint => _ =>