示例#1
0
        internal void TriggerMessageReceive(string message)
        {
            var compressed = Compress(message);
            var binary     = ResponseMessage.BinaryMessage(compressed);

            ResponseMessageSubject.OnNext(binary);
        }
        public void AccountClient_UnknownContent_UnhandledStreamUpdated(string messageContent)
        {
            // Arrange
            InitializeAccountClient();

            // Act
            var compressed = Compress(messageContent);
            var binary     = ResponseMessage.BinaryMessage(compressed);

            ResponseMessageSubject.OnNext(binary);

            // Assert
            UnhandledMessageObserverMock.Verify(m => m.OnNext(It.IsAny <string>()), Times.Once);
        }