public void SetUserNameConcurrentUpdateTest() { IFavorite sendaryFavorite = this.SecondaryFavorites.First(); this.SecondaryFavorites.Delete(sendaryFavorite); PrimaryFavorites.ApplyUserNameToAllFavorites(this.TestFavorites, VALIDATION_VALUE); }
public void SetPasswordToAllFavoritesTest() { PrimaryFavorites.SetPasswordToAllFavorites(this.TestFavorites, VALIDATION_VALUE); foreach (IFavorite secondaryFavorite in SecondaryFavorites) { var guarded = this.CreateGuardedSecurity(secondaryFavorite); Assert.AreEqual(VALIDATION_VALUE, guarded.Password, "Password was not set properly to all favorites"); } }
public void ApplyDomainNameToAllFavoritesTest() { PrimaryFavorites.ApplyDomainNameToAllFavorites(this.TestFavorites, VALIDATION_VALUE); foreach (IFavorite secondaryFavorite in SecondaryFavorites) { var guarded = this.CreateGuardedSecurity(secondaryFavorite); Assert.AreEqual(VALIDATION_VALUE, guarded.Domain, "Domain name was not set properly to all favorites"); } }
public void ApplyUserNameToAllFavoritesTest() { PrimaryFavorites.ApplyUserNameToAllFavorites(this.TestFavorites, VALIDATION_VALUE); foreach (IFavorite secondaryFavorite in SecondaryFavorites) { var guarded = new GuardedSecurity(this.PrimaryPersistence, secondaryFavorite.Security); Assert.AreEqual(VALIDATION_VALUE, guarded.UserName, "User name was not set properly to all favorites"); } }
public void ApplyCredentialsToAllFavoritesTest() { ICredentialSet credentialSet = PrimaryFactory.CreateCredentialSet(); credentialSet.Name = VALIDATION_VALUE; PrimaryPersistence.Credentials.Add(credentialSet); PrimaryFavorites.ApplyCredentialsToAllFavorites(this.TestFavorites, credentialSet); foreach (IFavorite secondaryFavorite in SecondaryFavorites) { Guid finalCredential = secondaryFavorite.Security.Credential; Assert.AreNotEqual(Guid.Empty, finalCredential, "Credential was not set properly to all favorites"); } this.AssertStoredCredentialsCount(); }