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

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

            SUT.OnMessageReceived += message =>
            {
                throw new NotImplementedException();
            };
        }
Ejemplo 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);
            }
Ejemplo 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);
        }