예제 #1
0
        public void Can_create_app_pool()
        {
            AppPoolController poolControllerController = new AppPoolController(new Website { Server = "localhost", AppPool = new AppPool { Name = "MasterAppPool" } });
            poolControllerController.Create();

            Assert.True(poolControllerController.Exists());
        }
예제 #2
0
 public void Exists_returns_false_if_not_created()
 {
     AppPoolController poolControllerController = new AppPoolController(new Website { Server = "localhost", AppPool = new AppPool { Name = "MasterAppPool" } });
     Assert.False(poolControllerController.Exists());
 }
예제 #3
0
 public void Can_Delete_AppPool()
 {
     AppPoolController poolControllerController = new AppPoolController(new Website { Server = "localhost", AppPool = new AppPool { Name = "MasterAppPool" } });
     Assert.DoesNotThrow(poolControllerController.Delete);
 }