Example #1
0
        public async Task TestLoadChannel()
        {
            var channel = @"elrubiusOMG";
            var page    = 1;

            var dataProvider = new YouTubeDataProvider(OAuthKeys.YouTubeValidKeys);
            IEnumerable <YouTubeSchema> result = await dataProvider.LoadChannelAsync(channel, page);

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Any());
        }
Example #2
0
        public async Task TestPaginationLoadChannel()
        {
            var channel = @"elrubiusOMG";
            var page = 1;

            var dataProvider = new YouTubeDataProvider(OAuthKeys.YouTubeValidKeys);
            await dataProvider.LoadChannelAsync(channel, page);

            Assert.IsTrue(dataProvider.HasMoreItems);

            IEnumerable<YouTubeSchema> result = await dataProvider.LoadMoreChannelAsync(channel, page);

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Any());
        }