Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public void Cleanup()
 {
     _event1.Disconnect();
     _event1.Dispose();
 }
Exemplo n.º 3
0
 private void btnDisconnect_Click(object sender, EventArgs e)
 {
     _eventBus.Disconnect();
     SetStatus(_eventBus.IsConnected);
 }