async Task PrintAllAsync() { IEnumerable <Genre> genreCollection = await genreService.GetAllAsync(); foreach (var item in genreCollection) { Console.WriteLine(item.Id + "\t" + item.Name); } }
public async Task GetAllAsyncShouldRetrieveGenres() { //Arrange var genreService = new GenreService(); //Act var genres = await genreService.GetAllAsync("en-US"); //Assert Assert.IsNotEmpty(genres); }
public void GetAllAsync_ReturnsCollection_Always() { var genres = _genreServices.GetAllAsync(); genres.Should().NotBeNull(); }