public void send_json_message() { var message = new Message2 { Name = "that one" }; var json = JsonSerialization.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)); }
public void send_json_message() { var message = new Message2 { Name = "that one" }; var json = JsonSerialization.ToJson(message); theHub.SendJson(json); listener1.Received().Receive(message); listener2.Received().Receive(message); listener3.Received().Receive(message); listener7.Received().Receive(message); listener8.Received().Receive(message); }