public void Blog() { var feed = new FeedItem(); feed.Feed = "http://webdevblogs.azurewebsites.net/master.xml"; feed.Id = "http://www.asp.net/vnext/overview/aspnet-vnext/create-a-web-api-with-mvc-6"; feed.PublishDate = new DateTime(2015, 08, 27); feed.Summary = "Note: An updated version of this article is located here."; feed.Title = "Create a Web API in MVC 6"; var messaggio = feed.GetTwitterText(); Assert.AreEqual("[blog]: Create a Web API in MVC 6. http://www.asp.net/vnext/overview/aspnet-vnext/create-a-web-api-with-mvc-6", messaggio); }
public void Video() { var feed = new FeedItem(); feed.Feed = "http://webdevblogs.azurewebsites.net/master.xml"; feed.Id = "https://channel9.msdn.com/Shows/Azure-Friday/Azure-API-Management-Policy-Expressions-102-JSON-Web-Tokens"; feed.PublishDate = new DateTime(2015, 08, 20, 23, 0, 0); feed.Summary = "<p>Scott talks to Vladimir Vinogradsky in this three-part series on Azure API Management Policy Expressions. This second episode talks about how JSON Web Tokens work and shows some of the online tools you'll use to express policies and then apply them with a Policy Definition. </p> <img src=\"http://m.webtrends.com/dcs1wotjh10000w0irc493s0e_6x1g/njs.gif?dcssip=channel9.msdn.com&dcsuri=https://channel9.msdn.com/Niners/Glucose/Posts/RSS&WT.dl=0&WT.entryid=Entry:RSSView:61bc3f20285e4c94a895a4ea009182d5\">"; feed.Title = "Azure API Management Policy Expressions 102 - JSON Web Tokens"; var messaggio = feed.GetTwitterText(); Assert.AreEqual("[video]: Azure API Management Policy Expressions 102 - JSON Web Tokens. https://channel9.msdn.com/Shows/Azure-Friday/Azure-API-Management-Policy-Expressions-102-JSON-Web-Tokens", messaggio); }