Created
August 31, 2014 18:19
-
-
Save shawnmclean/8a269bcfd7a4265abb7b to your computer and use it in GitHub Desktop.
HelpPageConfig modified for integration tests.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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