Esempio n. 1
0
        protected override void Given()
        {
            base.Given();

            WebSocket = new WebSocketClientStub();
            ConnectionInfo.WebSocket = WebSocket;

            SUT.OnMessageReceived += message =>
            {
                throw new NotImplementedException();
            };
        }
Esempio n. 2
0
            protected override void Given()
            {
                _webSocketClient = new WebSocketClientStub();
                _chatHub         = new SlackChatHub {
                    Id = "channelz-id"
                };

                var connectionInfo = new ConnectionInformation
                {
                    SlackKey  = SlackKey,
                    WebSocket = _webSocketClient
                };

                SUT.Initialise(connectionInfo);
            }
Esempio n. 3
0
        protected override void Given()
        {
            _webSocketClient = new WebSocketClientStub();
            _chatHub         = new SlackChatHub {
                Id = "channelz-id"
            };

            var connectionInfo = new ConnectionInformation
            {
                SlackKey  = SlackKey,
                WebSocket = _webSocketClient
            };

            GetMockFor <IConnectionFactory>()
            .Setup(x => x.CreateFileClient())
            .Returns(GetMockFor <IFileClient>().Object);

            SUT.Initialise(connectionInfo);
        }