public IEnumerable <URL> GetURLs()
 {
     return(new string[]
     {
         "https://github.com/AnzhelikaKravchuk?tab=repositories",
         "https://github.com/AnzhelikaKravchuk/2017-2018.MMF.BSU",
         "https://habrahabr.ru/company/it-grad/blog/341486/"
     }.Select(x => parser.Parse(x)));
 }
        public IEnumerable <URL> GetURLs()
        {
            CheckExistance();

            IEnumerable <string> content = File.ReadLines(path);
            var parsedUrls = new List <URL>();

            foreach (var tryUrl in content)
            {
                if (urlValidator.IsValid(tryUrl))
                {
                    URL parsedUrl = parser.Parse(tryUrl);
                    parsedUrls.Add(parsedUrl);
                }
                else
                {
                    logger.Log($"can't parse { tryUrl }");
                }
            }

            return(parsedUrls);
        }