Example #1
0
        private async Task <AvailableMovieImages> ConvertImagesResult(MovieImagesResult movieImagesResult)
        {
            AvailableMovieImages availableMovieImages = new AvailableMovieImages();

            availableMovieImages.Fanarts = await ConvertImagesCollection(movieImagesResult.Backdrops, 1920, 1080);

            availableMovieImages.Posters = await ConvertImagesCollection(movieImagesResult.Posters, 680, 1000);

            return(availableMovieImages);
        }
Example #2
0
        public async Task FindSetImages_WhenMetadataUpdaterReturnsImages_ReturnsThose()
        {
            // Arrange
            AvailableMovieImages images = new AvailableMovieImages();

            _metadataUpdater.FindSetImages("Star Wars")
            .Returns(images.ToTask());

            // Act
            AvailableMovieImages actualImages = await _service.FindSetImages("Star Wars");

            // Assert
            Assert.Same(images, actualImages);
        }
 private async Task<AvailableMovieImages> ConvertImagesResult(MovieImagesResult movieImagesResult)
 {
     AvailableMovieImages availableMovieImages = new AvailableMovieImages();
     availableMovieImages.Fanarts = await ConvertImagesCollection(movieImagesResult.Backdrops, 1920, 1080);
     availableMovieImages.Posters = await ConvertImagesCollection(movieImagesResult.Posters, 680, 1000);
     return availableMovieImages;
 }
        public async Task FindSetImages_WhenMetadataUpdaterReturnsImages_ReturnsThose()
        {
            // Arrange
            AvailableMovieImages images = new AvailableMovieImages();
            _metadataUpdater.FindSetImages("Star Wars")
                .Returns(images.ToTask());

            // Act
            AvailableMovieImages actualImages = await _service.FindSetImages("Star Wars");

            // Assert
            Assert.Same(images, actualImages);
        }