public async Task InitializeState_HasState_NotifyCurrentConnection() { var testPayload = new UserWssPayload(); var testRes = new InitialStateResponse(); _chatServiceMock .Setup(s => s.GetConnectionInitialStateAsync(TestUserId)) .ReturnsAsync(testRes); await _target.InitializeState(testPayload); AssertMessageSentToCurrentConnection(ChatHub.InitialStateMessage, content => content == testRes); }