using AutoFixture; using Govor.API.Hubs; using Govor.Application.Interfaces.Messages; using Microsoft.Extensions.Logging; using Moq; namespace Govor.API.Tests.IntegrationTests.Hubs; [TestFixture] public class ChatsHubTests { private Mock> _loggerMock; private Mock _messageServiceMock; private Fixture _fixture; private ChatsHub _chatsHub; [SetUp] public void SetUp() { _fixture = new Fixture(); _fixture.Behaviors.OfType().ToList().ForEach(b => _fixture.Behaviors.Remove(b)); _fixture.Behaviors.Add(new OmitOnRecursionBehavior()); _messageServiceMock = new Mock(); _loggerMock = new Mock>(); _chatsHub = new ChatsHub( _loggerMock.Object, _messageServiceMock.Object ); } // Test for Send action }