public async Task GetConversations_ReturnOk() { //Arrange IList <Conversation> conversations = new List <Conversation> { GenerateFake.Conversation(), GenerateFake.Conversation(), GenerateFake.Conversation() }; _mockRepo.Setup(repo => repo.GetConversations()).ReturnsAsync(conversations); //Act var response = await _conversationController.GetConversations(); //Assert Assert.IsAssignableFrom <OkObjectResult>(response); }