mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
Add unit tests and implement group repository interfaces
Introduces comprehensive unit tests for MessageService covering send, edit, and delete message scenarios. Adds and implements IGroupsRepository, IGroupsReader, and IGroupsWriter interfaces with method stubs in GroupRepository. Updates ChatGroup model with Description and ImageId fields, and registers GroupRepository in DI. Fixes parameter order in SendMessage record.
This commit is contained in:
@@ -13,6 +13,7 @@ using Govor.Core.Infrastructure.Validators;
|
||||
using Govor.Core.Models;
|
||||
using Govor.Core.Repositories.Admins;
|
||||
using Govor.Core.Repositories.Friendships;
|
||||
using Govor.Core.Repositories.Groups;
|
||||
using Govor.Core.Repositories.Invaites;
|
||||
using Govor.Core.Repositories.MediasAttachments;
|
||||
using Govor.Core.Repositories.Messages;
|
||||
@@ -60,6 +61,7 @@ public static class ConfigurationProgramExtensions
|
||||
services.AddScoped<IAdminsRepository, AdminsRepository>();
|
||||
services.AddScoped<IMediaAttachmentsRepository, MediaAttachmentsRepository>();
|
||||
services.AddScoped<IFriendshipsRepository, FriendshipsRepository>();
|
||||
services.AddScoped<IGroupsRepository, GroupRepository>();
|
||||
}
|
||||
|
||||
public static void AddValidators(this IServiceCollection services)
|
||||
|
||||
Reference in New Issue
Block a user