Ejemplo n.º 1
0
        public async void GetUserChannels_Test()
        {
            var youtube = new YoutubeFacade(ClientId,
                                            ClientSecret,
                                            "IA.Episodes",
                                            SavedRefreshTokenToMyChannel.ConvertToSecureString());
            var channels = await youtube.GetUserChannels();

            Assert.IsTrue(channels.Any(v => v.Title == "SportVideoAnalyzer"));
        }
Ejemplo n.º 2
0
        public async void GetPlaylists_Test()
        {
            var youtube = new YoutubeFacade(ClientId,
                                            ClientSecret,
                                            "IA.Episodes",
                                            SavedRefreshTokenToMyChannel.ConvertToSecureString());
            var channels = await youtube.GetUserChannels();

            var channelId = channels.First(v => v.Title == "SportVideoAnalyzer").Id;
            var playlists = await youtube.GetChannelPlaylists(channelId);

            Assert.IsTrue(playlists.Count > 5);
        }