public async Task<TvShowImages> GetShowImages(string tvShowPath) { TvShowImages images = new TvShowImages(); images.Fanart = Path.Combine(tvShowPath, "fanart.jpg"); images.Poster = Path.Combine(tvShowPath, "poster.jpg"); images.Banner = Path.Combine(tvShowPath, "banner.jpg"); images.Seasons = await GetSeasons(tvShowPath); return images; }
public async Task <TvShowImages> GetShowImages(string tvShowPath) { TvShowImages images = new TvShowImages(); images.Fanart = Path.Combine(tvShowPath, "fanart.jpg"); images.Poster = Path.Combine(tvShowPath, "poster.jpg"); images.Banner = Path.Combine(tvShowPath, "banner.jpg"); images.Seasons = await GetSeasons(tvShowPath); return(images); }
public async Task GetShowImages_Always_CalculatesTheShowMainImagePaths() { // Arrange const string path = @"C:\Folder\TV Shows\Game of Thrones"; // Act TvShowImages images = await _service.GetShowImages(path); // Assert Assert.Equal(@"C:\Folder\TV Shows\Game of Thrones\fanart.jpg", images.Fanart); Assert.Equal(@"C:\Folder\TV Shows\Game of Thrones\poster.jpg", images.Poster); Assert.Equal(@"C:\Folder\TV Shows\Game of Thrones\banner.jpg", images.Banner); }