예제 #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);
        }
예제 #2
0
 public void Cleanup()
 {
     _event1.Disconnect();
     _event1.Dispose();
 }