public void FromYoutubePlaylistToGDataPlaylist_WithPlaylistUri()
    {
      var uriConverter = new UriConverter(_webClient.Object);

      var playlistId = "foobar";
      var expectedUri = "http://gdata.youtube.com/feeds/api/playlists/foobar";

      Assert.AreEqual(expectedUri, uriConverter.FromYoutubePlaylistToGDataPlaylist(playlistId));
    }
    private IList<YoutubeVideo> GetListOfVideosFromPlaylist(string uri)
    {
      SetState("Getting list of videos");

      var uriConverter = new UriConverter(new WebClientImpl());
      var playlistId = uriConverter.GetPlaylistId(uri);
      var gdataUri = uriConverter.FromYoutubePlaylistToGDataPlaylist(playlistId);
      var resultAggregator = new ResultAggregator(gdataUri);
      var videos = resultAggregator.GetVideos();

      SetState("Videos found: " + videos.Count);
      return videos;
    }