Пример #1
0
        public async Task ScrapeBatchAsync_WhenBatchResultShowIdsAreLessThanGivenShowId_ReturnsEmptyCollection()
        {
            // Arrange
            int showId    = 20;
            int batchSize = 250;

            _httpClient
            .Setup(c => c.GetShowIndexPage(0))
            .ReturnsAsync(GenerateMockShows(1, 20));

            // Act
            var results = await _target.ScrapeBatchAsync(showId, batchSize);

            // Assert
            Assert.Empty(results);
        }