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); }
public static void AssemblyCleanup() { _iisExpress.Dispose(); _iisExpress = null; }