Exemple #1
0
        public async Task GetMessagesFromIds()
        {
            MessagesController controller = GetMessagesController();
            await controller.SendMessage(new AddMessageRequest
            {
                Text     = _defaultMessageText,
                Location = _zeroLocation
            });

            List <Guid> messagesGuid = await controller.GetIdsOfUserMessages();

            List <MessageResponse> messages = await controller.GetMessagesFromId(messagesGuid);

            Assert.AreEqual(1, messages.Count);
            Assert.AreEqual(_defaultMessageText, messages[0].Text);
        }