public async Task PostGetMessage() { var addMessageRequestBody = CreateRandomAddMessageBody(); await _chatServiceClient.AddMessage(_conversationId, addMessageRequestBody); var message = AddMessageBodyToMessage(addMessageRequestBody); _messagesToCleanup.Add(message.Id); var fetchedMessage = await _chatServiceClient.GetMessage(_conversationId, addMessageRequestBody.Id); Assert.Equal(message, fetchedMessage); }
public async Task PostGetMessage() { var conversation = CreateRandomPostConversationRequest(); var message = CreateRandomPostMessageRequest(); var fetchedConversation = await _chatServiceClient.AddConversation(conversation); var fetchedMessage = await _chatServiceClient.AddMessage(fetchedConversation.Id, message); Assert.Equal(message.Id, fetchedMessage.Id); }