public void MsDeployPackageProfile_ReturnsCorrectMsDeployPackagePublishProfile() { MSDeployPackagePublishProfile packageProfile = new MSDeployPackagePublishProfile() { PackageLocation = @"bin\Release\PackageOutput.zip", DeployIisAppPath = @"Default Web Site" }; Assert.Equal(TestResources.MSDeployPackagePublishProfile, packageProfile.ToString()); }
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); }