public void XslCompiledTransform() { var rssFeedGenerator = new RssFeedGenerator(@"..\..\Xslts\BooksRssFeed.xslt"); var result = rssFeedGenerator.GenerateRssFeed(@"..\..\Sources\books.xml", @"..\..\Generated\booksrss.xml"); Assert.IsTrue(result); }
public ActionResult Index() { var rssFeedViewModel = GetRssFeedViewModel(); var feed = RssFeedGenerator.GetRssFeedData(rssFeedViewModel, Url); return(new RssActionResult { Feed = feed }); }