public AppSelfHostTests() { var port = HostContext.FindFreeTcpPort(startingFrom: 5000); if (port < 5000) { throw new Exception("Expected port >= 5000, got: " + port); } ListeningOn = "http://localhost:{0}/".Fmt(port); appHost = new AppHostSmartPool() .Init() .Start(ListeningOn); }