Ejemplo n.º 1
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);
        }
 /// <summary>
 /// Finds the set images.
 /// </summary>
 /// <param name="setName">Name of the set.</param>
 /// <returns></returns>
 public Task <AvailableMovieImages> FindSetImages(string setName)
 {
     return(_metadataUpdater.FindSetImages(setName));
 }