The IisExpress class is used to manage an IIS Express instance for running integration tests.
Наследование: 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;
 }