Пример #1
0
        public void TestWithoutNamespace()
        {
            bool called = false;

            var processor = new DisconnectedProcessor();

            processor.Process(new MessageContext
            {
                Message             = string.Empty,
                DisconnectedHandler = () => called = true
            });

            Assert.IsTrue(called);
        }
Пример #2
0
        public void TestWithNamespace()
        {
            bool called = false;

            var processor = new DisconnectedProcessor();

            processor.Process(new MessageContext
            {
                Namespace           = "/github",
                Message             = "/github,",
                DisconnectedHandler = () => called = true
            });

            Assert.IsTrue(called);
        }