Exemplo n.º 1
0
        public void SetupWebsite()
        {
            // common logic to arrange the test website
            const string webSiteName = "TestEasyWebSite";
            var server = WebServer.Create();
            _appInfo = server.CreateWebApplication("TestEasyWebSite");

            server.DeployWebApplication(_appInfo.Name, new List<DeploymentItem>
                {
                    new DeploymentItem { Type = DeploymentItemType.Directory, Path = webSiteName }
                });
        }
        public WebServerAndBrowsersSngleWebsitesTest()
        {
            if (Server == null)
            {
                Server = WebServer.Create();

                AppInfo = Server.CreateWebApplication(WebSiteName);
                Server.DeployWebApplication(AppInfo.Name, new List<DeploymentItem>
                {
                    new DeploymentItem { Type = DeploymentItemType.Directory, Path = WebSiteName }
                });
            }
        }