private static void PlayPlaylist(string url)
        {
            var playbackInfoProvider = new YoutubePlaybackInfoProvider();
            var audioHub             = new AudioHub(playbackInfoProvider);

            var allDevices = audioHub.Devices
                             .OfType <PlaybackAudioDevice>()
                             .ToArray();

            var playbackUris = new YoutubePlaylistProvider().CreatePlaylist(new Uri(url));
            var playback     = new PlaylistPlayback(audioHub, playbackUris);

            foreach (var playbackAudioDevice in allDevices)
            {
                playback.AddOutgoingConnection(playbackAudioDevice);
            }

            playback.CurrentTrack = playback.Tracks[15];
            playback.Play();
        }
 public YoutubePlaybackInfoProviderTestsFixture()
 {
     WebClient = new Mock <IWebClient>();
     Sut       = new YoutubePlaybackInfoProvider(new DownloadUrlResolver(WebClient.Object));
 }