public static void AssemblyInitialize(TestContext context) { var solutionDirectory = context.FindSolutionDirectory(); var projectDirectory = Path.Combine(solutionDirectory, "Lab.WebApi"); var address = TestConfig.BaseWebAddress; _iisExpress = new IISExpressHelper(); _iisExpress.Start(projectDirectory, address.Port, address); }
public static void AssemblyCleanup() { _iisExpress.Dispose(); _iisExpress = null; }