示例#1
0
        public void MsDeployPackageProfile_ReturnsCorrectMsDeployPackagePublishProfile()
        {
            MSDeployPackagePublishProfile packageProfile = new MSDeployPackagePublishProfile()
            {
                PackageLocation  = @"bin\Release\PackageOutput.zip",
                DeployIisAppPath = @"Default Web Site"
            };

            Assert.Equal(TestResources.MSDeployPackagePublishProfile, packageProfile.ToString());
        }
示例#2
0
        public static PublishProfile CreatePublishProfile(string publishMethod)
        {
            PublishProfile publishProfile = null;

            switch (publishMethod)
            {
            case MSDeployPublishProfile.PublishMethod:
                publishProfile = new MSDeployPublishProfile();
                break;

            case MSDeployPackagePublishProfile.PublishMethod:
                publishProfile = new MSDeployPackagePublishProfile();
                break;

            case FileSystemPublishProfile.PublishMethod:
                publishProfile = new FileSystemPublishProfile();
                break;
            }

            return(publishProfile);
        }