public void PosterUrl_Always_ShouldBeLoaded()
        {
            // Arrange
            Season season = new Season {
                PosterUrl = @"C:\Folder\TV Shows\Game of Thrones\season01-poster.jpg"
            };

            _tvShowFileService.GetSeason(Arg.Any <string>(), _path)
            .Returns(season);

            // Act
            string posterUrl = _viewModel.PosterUrl.Path;

            // Assert
            Assert.Equal(season.PosterUrl, posterUrl);
        }
Example #2
0
 private void LoadImages()
 {
     using (_busyProvider.DoWork())
     {
         if (!_imagesLoaded)
         {
             Season season = _tvShowFileService.GetSeason(_tvShowMetadata.Path, Path);
             _imagesLoaded  = true;
             PosterUrl.Path = season.PosterUrl;
             BannerUrl.Path = season.BannerUrl;
         }
     }
 }