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); }
private void btnSend_Click(object sender, EventArgs e) { _eventBus.Send(txtChannelId.Text, txtMessageId.Text, txtContent.Text); }