Пример #1
0
 /// <summary>
 /// This is automatically run when all tests have completed to stop the server
 /// </summary>
 // Remove the comment before the annotation to make it work
 //[ClassCleanup]
 public static void StopIIS()
 {
     IISAgent.Stop();
 }
Пример #2
0
 /// <summary>
 /// This is automatically run prior to all the tests to start the server.
 /// </summary>
 // Remove the comment before the annotation to make it work
 //[ClassInitialize]
 public static void StartIIS(TestContext testContext)
 {
     IISAgent.Start(@"/site:""ToDoListServer"" /apppool:""Clr4IntegratedAppPool"" /config:""..\..\..\.vs\config\applicationhost.config""");
 }