private void grabs_links_from_website() { var linkGrabber = new LinkGrabber(); var result = linkGrabber.Grab(); // there should be more than one result Assert.True(result.Count > 1); }
// GET: InformatorEkonomiczny public ActionResult Index() { Response.ContentType = "application/rss+xml"; var settings = new XmlWriterSettings(); settings.Encoding = Encoding.UTF8; var xmlWriter = XmlWriter.Create(Response.Output, settings); var ieRssGenerator = new InformatorEkonomicznyRssStreamWriter(); var linkGrabber = new LinkGrabber(); var linksDictionary = linkGrabber.Grab(); var episodes = linksDictionary.ToEpisodes().ToList(); ieRssGenerator.Write(episodes, xmlWriter); Response.End(); return(new EmptyResult()); }