public void GivenCorrectUserInputForAlbumIdReturnCorrectPhoto() { const string albumId = "1"; var expected = new List <PhotoDto> { new PhotoDto { AlbumId = 1, Id = 1, Title = "Test Title", Url = "Test Url", ThunbnailUrl = "Test ThumbnailUrl" } }; _photoValues.GetPhotoValuesAsync(albumId) .Returns(expected); var actual = _sut.GatherPossiblePhotosAsync(albumId); actual.Result.ToList().Should().BeEquivalentTo(expected); }
public async Task <IEnumerable <PhotoDto> > GatherPossiblePhotosAsync(string userInput) { return(await _photoValues.GetPhotoValuesAsync(userInput)); }