rework and starts for new friends system

This commit is contained in:
Artemy
2025-07-08 22:28:04 +07:00
parent 92c1ff6458
commit b1f3aa0266
29 changed files with 1028 additions and 309 deletions
@@ -1,5 +1,6 @@
using AutoFixture;
using Govor.API.Hubs;
using Govor.Application.Interfaces;
using Govor.Application.Interfaces.Messages;
using Microsoft.Extensions.Logging;
using Moq;
@@ -11,6 +12,7 @@ public class ChatsHubTests
{
private Mock<ILogger<ChatsHub>> _loggerMock;
private Mock<IMessageService> _messageServiceMock;
private Mock<IUserGroupsService> _userGroupsServiceMock;
private Fixture _fixture;
private ChatsHub _chatsHub;
@@ -22,14 +24,20 @@ public class ChatsHubTests
_fixture.Behaviors.Add(new OmitOnRecursionBehavior());
_messageServiceMock = new Mock<IMessageService>();
_userGroupsServiceMock = new Mock<IUserGroupsService>();
_loggerMock = new Mock<ILogger<ChatsHub>>();
_chatsHub = new ChatsHub(
_loggerMock.Object,
_messageServiceMock.Object
_messageServiceMock.Object,
_userGroupsServiceMock.Object
);
}
// Test for Send action
[Test]
public void SendMessage_Success()
{
}
}