コード例 #1
0
        public static void CloseIISExpress()
        {
            using (var wc = new WebClient())
            {
                wc.DownloadString(new Uri($"{_webServer.BaseUrl}/database/restorefordevelopment"));
            }

            _webServer.Stop();
        }
コード例 #2
0
 public void StopHost()
 {
     try
     {
         _host.Stop();
     }
     catch (Exception e)
     {
         Console.WriteLine("Failed to stop the host: {0} {1}", e.GetType(), e.Message);
     }
 }
コード例 #3
0
ファイル: HostSetup.cs プロジェクト: ilmaz/WarCraft-Tiger
 public static void AfterTestSuiteRun()
 {
     _host.Stop();
 }
コード例 #4
0
 public static void CloseIISExpress()
 {
     _webServer.Stop();
 }
コード例 #5
0
 public static void StopHost()
 {
     host.Stop();
 }
コード例 #6
0
 public void StopHost()
 {
     _host.Stop();
 }