Esempio n. 1
0
        public SampleTest()
        {
            if (Server == null)
            {
                Server = CreateWebServer();

                Application = Server.CreateWebApplication(WebSiteName);
                Application.Deploy(WebSiteName);

                VirtualPath = Server.GetApplicationVirtualPath(Application);
            }
        }
        public DashboardServer(string deployPath)
        {
            if (string.IsNullOrWhiteSpace(deployPath))
            {
                throw new ArgumentNullException(deployPath);
            }

            _server = WebServer.Create(WebServerType.IISExpress);
            _application = _server.CreateWebApplication(ApplicationName);
            _application.Deploy(deployPath);

            _webConfigFilePath = Path.Combine(_server.RootPhysicalPath, ApplicationName, "web.config");
            _virtualPath = _server.GetApplicationVirtualPath(_application, TestEasyConfig.Instance.Client.Remote);
        }