mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
ChatGroupValidator
This commit is contained in:
@@ -75,6 +75,7 @@ public static class ConfigurationProgramExtensions
|
|||||||
services.AddScoped<IObjectValidator<Invitation>, InvitationValidator>();
|
services.AddScoped<IObjectValidator<Invitation>, InvitationValidator>();
|
||||||
services.AddScoped<IObjectValidator<Friendship>, FriendshipValidator>();
|
services.AddScoped<IObjectValidator<Friendship>, FriendshipValidator>();
|
||||||
services.AddScoped<IObjectValidator<PrivateChat>, PrivateChatValidator>();
|
services.AddScoped<IObjectValidator<PrivateChat>, PrivateChatValidator>();
|
||||||
|
services.AddScoped<IObjectValidator<ChatGroup>, ChatGroupValidator>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void AddGovorDbContext(this IServiceCollection services, IConfiguration configuration)
|
public static void AddGovorDbContext(this IServiceCollection services, IConfiguration configuration)
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
using Govor.Core.Models;
|
||||||
|
|
||||||
|
namespace Govor.Core.Infrastructure.Validators;
|
||||||
|
|
||||||
|
public class ChatGroupValidator : IObjectValidator<ChatGroup>
|
||||||
|
{
|
||||||
|
public void Validate(ChatGroup objectToValidate)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool TryValidate(ChatGroup objectToValidate)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user