public void Send_ReturnCorrect_Case1() { string channelId = "channelId"; string messageId = "messageId"; string content = "content"; KtMmfEventBus event2 = new KtMmfEventBus(); event2.MessageReceived += OnMessageReceived; event2.SetConnectionInfo(false); event2.Connect(); _event1.Send(channelId, messageId, content); var expected = new EventBusMessageEventArgs(channelId, messageId, content); Thread.Sleep(100); event2.Disconnect(); event2.Dispose(); Assert.AreEqual(expected.ToExpectedObject(), _message); }
public void Cleanup() { _event1.Disconnect(); _event1.Dispose(); }
private void btnDisconnect_Click(object sender, EventArgs e) { _eventBus.Disconnect(); SetStatus(_eventBus.IsConnected); }