Skip to content

Instantly share code, notes, and snippets.

@shawnmclean
Created August 31, 2014 18:19
Show Gist options
  • Save shawnmclean/8a269bcfd7a4265abb7b to your computer and use it in GitHub Desktop.
Save shawnmclean/8a269bcfd7a4265abb7b to your computer and use it in GitHub Desktop.
HelpPageConfig modified for integration tests.
public static class HelpPageConfig
{
public static void Register(HttpConfiguration config)
{
var path = HostingEnvironment.MapPath("~/App_Data/XmlDocument.xml");
if (!string.IsNullOrWhiteSpace(path))
{
config.SetDocumentationProvider(
new XmlDocumentationProvider(path));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment