public static void Cleanup() { TestWebApiHost.StopAsync().GetAwaiter().GetResult(); }
public static void InitTests(TestContext context) { // Hans: Alternatively, we could use the asp.net TestServer classes here. TestWebApiHost = WebHost.CreateDefaultBuilder().UseStartup <Startup>().Build(); TestWebApiHost.Start(); }