From b027b20fc3773f76837d1bb163162d9a27a7876a Mon Sep 17 00:00:00 2001 From: Artemy <109195690+stalcker2288969@users.noreply.github.com> Date: Mon, 7 Jul 2025 14:05:11 +0700 Subject: [PATCH] ChatGroupValidator --- .../Extensions/ConfigurationProgramExtensions.cs | 1 + .../Validators/ChatGroupValidator.cs | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 Govor.Core/Infrastructure/Validators/ChatGroupValidator.cs diff --git a/Govor.API/Extensions/ConfigurationProgramExtensions.cs b/Govor.API/Extensions/ConfigurationProgramExtensions.cs index 7e45361..c727014 100644 --- a/Govor.API/Extensions/ConfigurationProgramExtensions.cs +++ b/Govor.API/Extensions/ConfigurationProgramExtensions.cs @@ -75,6 +75,7 @@ public static class ConfigurationProgramExtensions services.AddScoped, InvitationValidator>(); services.AddScoped, FriendshipValidator>(); services.AddScoped, PrivateChatValidator>(); + services.AddScoped, ChatGroupValidator>(); } public static void AddGovorDbContext(this IServiceCollection services, IConfiguration configuration) diff --git a/Govor.Core/Infrastructure/Validators/ChatGroupValidator.cs b/Govor.Core/Infrastructure/Validators/ChatGroupValidator.cs new file mode 100644 index 0000000..d6c8b58 --- /dev/null +++ b/Govor.Core/Infrastructure/Validators/ChatGroupValidator.cs @@ -0,0 +1,16 @@ +using Govor.Core.Models; + +namespace Govor.Core.Infrastructure.Validators; + +public class ChatGroupValidator : IObjectValidator +{ + public void Validate(ChatGroup objectToValidate) + { + throw new NotImplementedException(); + } + + public bool TryValidate(ChatGroup objectToValidate) + { + throw new NotImplementedException(); + } +} \ No newline at end of file