public async Task GetGenres_ReturnsObjectResult() { // Arrange List <Genre> genres = new List <Genre>() { new Genre() { Id = 1, Name = "Horror alt." }, new Genre() { Id = 2, Name = "Spooky" } }; _mockRepo.Setup(repo => repo.GetAll <Genre>()).ReturnsAsync(genres); // Act var response = await _genresController.GetAll(1); // Assert Assert.IsAssignableFrom <ObjectResult>(response.Result); }