예제 #1
0
        public void CanHandleBotMessages()
        {
            var handler = new BotHandler();

            var result = handler.CanHandle(new BotChanged { Type = EventType.BotChanged });
            Assert.True(result);

            result = handler.CanHandle(new BotAdded { Type = EventType.BotAdded });
            Assert.True(result);
        }
예제 #2
0
        public void CanHandleBotMessages()
        {
            var handler = new BotHandler();

            var result = handler.CanHandle(new BotChanged {
                Type = EventType.BotChanged
            });

            Assert.True(result);

            result = handler.CanHandle(new BotAdded {
                Type = EventType.BotAdded
            });
            Assert.True(result);
        }