public void UserProfile_ReturnsEncryptedUserProfile() { var userProfile = PublishProfileCreatorFactory.CreateUserPublishProfileFromPublishSettings(TestResources.PublishSettings); using (XmlTextReader reader = new XmlTextReader(new StringReader(userProfile.Value.ToString()))) { Project userProject = new Project(reader); Assert.NotNull(userProject.GetProperty("EncryptedPassword").EvaluatedValue); } }
public void MsDeployProfile_FromPublishSettings() { var msDeployProfile = PublishProfileCreatorFactory.CreateMSDeployPublishProfileFromPublishSettings(TestResources.PublishSettings); Assert.Equal(TestResources.MsDeployFromPublishSettings, msDeployProfile.Value.ToString()); }
public void PublishProfileFactory_ReturnsCorrectMsDeployPackagePublishProfile() { string packageProfile = PublishProfileCreatorFactory.CreatePublishProfile("Package").ToString(); Assert.AreEqual(TestResources.MSDeployPackagePublishProfile, packageProfile); }
public void PublishProfileFactory_ReturnsCorrectFileSystemProfile() { string fileSystemProfile = PublishProfileCreatorFactory.CreatePublishProfile("FileSystem").ToString(); Assert.AreEqual(TestResources.FileSystemPublishProfile, fileSystemProfile); }
public void PublishProfileFactory_ReturnsMsDeployProfileWithCorrectSetttings_FromPublishSettings() { string msDeployProfile = PublishProfileCreatorFactory.CreateMSDeployPublishProfileFromPublishSettings(TestResources.PublishSettings); Assert.AreEqual(TestResources.MsDeployFromPublishSettings, msDeployProfile); }