public void TestPostingToMultipleSessions() { channel.Subscribe(session1, "Channel1"); channel.Subscribe(session2, "Channel1"); channel.Post("Channel1", msg1); session1.Received(1).OnPost(msg1); session2.Received(1).OnPost(msg1); }
public void TestPostingToProperChannel() { channel.Subscribe(session1, "Channel1"); channel.Subscribe(session1, "Channel2"); channel.Post("Channel1", msg1); session1.Received(1).OnPost(msg1); }