The IisExpress class is used to manage an IIS Express instance for running integration tests.
Inheritance: IDisposable
示例#1
0
        public static void AssemblyInitialize(TestContext context)
        {
            var solutionDirectory = context.FindSolutionDirectory();
            var projectDirectory  = Path.Combine(solutionDirectory, "Headless.DemoSite");
            var address           = Config.BaseWebAddress;

            _iisExpress = new IisExpress();

            _iisExpress.Start(projectDirectory, address.Port, address);
        }
示例#2
0
        public static void AssemblyInitialize(TestContext context)
        {
            var solutionDirectory = context.FindSolutionDirectory();
            var projectDirectory = Path.Combine(solutionDirectory, "Headless.DemoSite");
            var address = Config.BaseWebAddress;

            _iisExpress = new IisExpress();

            _iisExpress.Start(projectDirectory, address.Port, address);
        }
示例#3
0
 public static void AssemblyCleanup()
 {
     _iisExpress.Dispose();
     _iisExpress = null;
 }
示例#4
0
 public static void AssemblyCleanup()
 {
     _iisExpress.Dispose();
     _iisExpress = null;
 }