Exemplo n.º 1
0
        public void LinksReceitaFederalTest()
        {
            WebCatch.LinkSolver ls = new WebCatch.LinkSolver();
            var links = ls.FindLinks(receitaUrl, receitaRegex);

            Assert.IsTrue(links.Count > 0);
        }
Exemplo n.º 2
0
        public void LinksReceitaFederal()
        {
            WebCatch.LinkSolver ls = new WebCatch.LinkSolver();
            var links = ls.FindLinks(receitaUrl, receitaRegex);

            List <References> item = new List <References>();

            item.Add(links.FirstOrDefault());

            WebCatch.Taker taker = new WebCatch.Taker();
            taker.DownloadItems(item, path, extension);

            Assert.Pass();
        }