protected override void Given() { base.Given(); WebSocket = new WebSocketClientStub(); ConnectionInfo.WebSocket = WebSocket; SUT.OnMessageReceived += message => { throw new NotImplementedException(); }; }
protected override void Given() { _webSocketClient = new WebSocketClientStub(); _chatHub = new SlackChatHub { Id = "channelz-id" }; var connectionInfo = new ConnectionInformation { SlackKey = SlackKey, WebSocket = _webSocketClient }; SUT.Initialise(connectionInfo); }
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); }