public void GetPodcastById_ValidId_ReturnsPodcast() { // Arrange iTunesSearchManager search = new iTunesSearchManager(); long podcastId = 1002937870; // Act var items = search.GetPodcastById(podcastId).Result; // Assert Assert.IsTrue(items.Podcasts.Any()); Assert.AreEqual("Dear Hank and John", items.Podcasts.First().Name); Assert.AreEqual("http://feeds.soundcloud.com/users/soundcloud:users:156542883/sounds.rss", items.Podcasts.First().FeedUrl); }
public void GetPodcastById_ValidId_ReturnsPodcast() { // Arrange iTunesSearchManager search = new iTunesSearchManager(); long podcastId = 1002937870; // Act var items = search.GetPodcastById(podcastId).Result; // Assert Assert.IsTrue(items.Podcasts.Any()); Assert.AreEqual("Dear Hank and John", items.Podcasts.First().Name); Assert.AreEqual("http://dearhankandjohn.libsyn.com/rss", items.Podcasts.First().FeedUrl); }