Пример #1
0
        public void GetLinksFromLastHours_ShouldReturnLinksFromLastHours()
        {
            // May 9 20201 10 am
            DateTime      dateTime      = new DateTime(2021, 5, 9, 10, 0, 0);
            int           hoursLimit    = 1;
            List <string> result        = _linkService.GetLinksFromLastHours(hoursLimit, dateTime);
            List <string> resultToMatch = new List <string>();

            resultToMatch.Add($"{baseUrl}/2021/2021-05/pageviews-20210509-090000.gz");

            Assert.Equal(resultToMatch.Count, result.Count);
            Assert.Equal(resultToMatch[0], result[0]);
        }