Esempio n. 1
0
        public void TestPostingToProperSession()
        {
            channel.Subscribe(session1, "Channel1");
            channel.Subscribe(session2, "Channel2");

            channel.Post("Channel1", msg1);

            session1.Received(1).OnPost(msg1);
            session2.DidNotReceive().OnPost(msg1);
        }