public WebsiteProject(IWebServer webServer, IWebDriver webDriver, DirectoryInfo projectDirectory, int port) { LogTo.Trace("WebsiteProject(webServer, projectDirectory: {0}, port: {1})", projectDirectory, port); WebServer = webServer; WebDriver = webDriver; Uri = new Uri(string.Format("http://localhost:{0}", port)); WebServer.StartWebsite(projectDirectory, port); }