public void DeployPackageDoesNotExist()
        {
            // Arrange
            var packageDeployer = new PackageDeployer(_console);
            packageDeployer.UseTargetServer("localhost");
            packageDeployer.UseWindowsAuthentication();

            // Act
            Should.Throw<ArgumentException>(() => packageDeployer.Deploy(new FileInfo("does-not-exist.dacpac"), "TestDatabase"));
        }
        public void UseWindowsAuthentication()
        {
            // Arrange
            var packageDeployer = new PackageDeployer(_console);

            // Act
            packageDeployer.UseWindowsAuthentication();

            // Assert
            packageDeployer.ConnectionStringBuilder.IntegratedSecurity.ShouldBeTrue();
        }
        public void UseWindowsAuthenticationWithoutLoadPackage()
        {
            // Arrange
            using var packageDeployer = new PackageDeployer(_console);
            var packagePath = BuildSimpleModel();

            // Act
            Should.Throw <InvalidOperationException>(() => packageDeployer.UseWindowsAuthentication());

            // Assert
            packageDeployer.ConnectionStringBuilder.IntegratedSecurity.ShouldBeFalse();
        }
        public void UseWindowsAuthentication()
        {
            // Arrange
            using var packageDeployer = new PackageDeployer(_console);
            var packagePath = BuildSimpleModel();

            // Act
            packageDeployer.LoadPackage(packagePath);
            packageDeployer.UseWindowsAuthentication();

            // Assert
            packageDeployer.ConnectionStringBuilder.IntegratedSecurity.ShouldBeTrue();
        }