Ejemplo n.º 1
0
        public void send_json_message()
        {
            var message = new Message2 {
                Name = "that one"
            };


            var json = MessagingHub.ToJson(message);

            theHub.SendJson(json);

            listener1.AssertWasCalled(x => x.Receive(message));
            listener2.AssertWasCalled(x => x.Receive(message));
            listener3.AssertWasCalled(x => x.Receive(message));

            listener7.AssertWasCalled(x => x.Receive(message));
            listener8.AssertWasCalled(x => x.Receive(message));
        }
Ejemplo n.º 2
0
        public void SendRemotely <T>(T message)
        {
            string json = MessagingHub.ToJson(message);

            _proxy.SendJson(json);
        }