Exemplo n.º 1
0
        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);
        }