/// <summary>Starts an instance of the local web server.</summary> public static void StartWebServer() { if (s_webserver == null) { s_webserver = new IISExpressWebserver(); s_webserver.Start(LocalWebServerHelper.TargetPhysicalPath, LocalWebServerHelper.LocalPortNumber); } }
private static void StartWebServer() { string projectPath = File.ReadAllLines("ClientTestProjectPath.txt")[0]; string webSitePath = Path.GetFullPath(Path.Combine(projectPath, @"..\..\..\Test\WebsiteFullTrust")); if (!Directory.Exists(webSitePath)) { throw new FileNotFoundException($"Website not found at {webSitePath}"); } s_webServer = new IISExpressWebserver(); #if VBTests s_webServer.Start(webSitePath, 60000); #else s_webServer.Start(webSitePath, 60002); #endif }