Exemplo n.º 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());
        }
Exemplo n.º 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());
 }
Exemplo n.º 3
0
 public void Can_Delete_AppPool()
 {
     AppPoolController poolControllerController = new AppPoolController(new Website { Server = "localhost", AppPool = new AppPool { Name = "MasterAppPool" } });
     Assert.DoesNotThrow(poolControllerController.Delete);
 }