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

      var youtubePlaylistUri = "http://www.youtube.com/view_play_list?p=test&playnext=1";
      var playlistId = uriConverter.GetPlaylistId(youtubePlaylistUri);

      Assert.AreEqual("test", 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;
    }