Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }