Ejemplo n.º 1
0
        public async Task GetUpcomingVideoList_EMPTY_OK()
        {
            UpcomingVideoListResponse upcomingVideoListResponse = await service.GetUpcomingVideoListAsync(TWICE_CHANNEL_SEQ, 10, 1);

            Assert.AreEqual(upcomingVideoListResponse.TotalVideoCount, 0);
            Assert.AreEqual(upcomingVideoListResponse.Videos.Count, 0);
        }
Ejemplo n.º 2
0
        public async Task <UpcomingVideoListResponse> FetchNextAsync()
        {
            if (!hasNext)
            {
                return(null);
            }

            UpcomingVideoListResponse channelVideoListResponse = await _service.GetUpcomingVideoListAsync(_channelSeq, _count, currentPage);

            if (channelVideoListResponse.Videos.Count < _count)
            {
                hasNext = false;
            }

            currentPage++;

            return(channelVideoListResponse);
        }