Example #1
0
        public async Task SendBatchOfActivities()
        {
            SimpleAdapter a = new SimpleAdapter();
            TurnContext   c = new TurnContext(a, new Activity());

            Assert.IsFalse(c.Responded);

            var message1 = TestMessage.Message("message1");
            var message2 = TestMessage.Message("message2");

            var response = await c.SendActivities(new IActivity[] { message1, message2 });

            Assert.IsTrue(c.Responded);
            Assert.IsTrue(response.Length == 2);
            Assert.IsTrue(response[0].Id == "message1");
            Assert.IsTrue(response[1].Id == "message2");
        }