public void Documentation_GetDocumentationFor_Key() { documentation.Load(); TableOfContents toc = documentation.GetTableOfContents(); // find a key to search for ContentEntry toFind = toc.GetEntryFor("T:DocumentationTest.AllOutputTypesClass"); // test find string found = documentation.GetDocumentationFor(toFind.Key); Assert.IsNotNull(found); Assert.AreEqual(toFind.Key.ToString(), this.getKey(found)); }
// // GET: /Library/ public ActionResult Index(long documentationFor) { Documentation docs = LiveDocumenter.Models.Docs.Get(); string document = docs.GetDocumentationFor("N:TheBoxSoftware.API.LiveDocumenter"); return(this.Content(document, "text/xml")); }