Пример #1
0
        public async System.Threading.Tasks.Task ReturnsPhotosOnlyForTheRequestedAlbumById1Async()
        {
            var          albumId = 1;
            List <Photo> photos  = await _photoAlbumRetriever.GetPhotosByAlbumIdAsync(albumId);

            Assert.NotEmpty(photos);
            Assert.Equal(albumId, photos[0].AlbumId);
        }
        public async Task DisplayPhotosAsync(string albumNumber)
        {
            var albumIdAsInt = int.Parse(albumNumber);
            var photos       = await _photoAlbumRetriever.GetPhotosByAlbumIdAsync(albumIdAsInt);

            photos.ForEach(photo => Console.WriteLine(photo.ToString()));
        }