Sha256: fa45b77d0cd32aa4def04634449e209f3dd393ec66ac6e3e2d99068e87c178be

Contents?: true

Size: 1.1 KB

Versions: 3

Compression:

Stored size: 1.1 KB

Contents

using Xunit;

namespace DolphinDeploy.IIS.IIS6.Tests
{
    public class AppPoolControllerTests
    {
        [Fact]
        public void Can_create_app_pool()
        {
            AppPoolController poolControllerController = CreateController();
            poolControllerController.Create();

            Assert.True(poolControllerController.Exists());
        }

        [Fact]
        public void Exists_returns_false_if_not_created()
        {
            AppPoolController poolControllerController = CreateController();
            Assert.False(poolControllerController.Exists());
        }

        [Fact]
        public void Can_Delete_AppPool()
        {
            AppPoolController poolControllerController = CreateController();
            Assert.DoesNotThrow(poolControllerController.Delete);
        }

        private AppPoolController CreateController()
        {
            var appController = new AppPoolController();
            appController.Server = "localhost";
            appController.Name = "MasterAppPool";

            return appController;
        }
    }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dolphindeploy-0.0.3-universal-dotnet lib/csharp/DolphinDeploy.IIS.IIS6/DolphinDeploy.IIS.IIS6.Tests/AppPoolControllerTests.cs
dolphindeploy-0.0.2-universal-dotnet lib/csharp/DolphinDeploy.IIS.IIS6/DolphinDeploy.IIS.IIS6.Tests/AppPoolControllerTests.cs
dolphindeploy-0.0.1 lib/csharp/DolphinDeploy.IIS.IIS6/DolphinDeploy.IIS.IIS6.Tests/AppPoolControllerTests.cs