public void SetUserNameConcurrentUpdateTest() { IFavorite sendaryFavorite = this.SecondaryFavorites.First(); this.SecondaryFavorites.Delete(sendaryFavorite); PrimaryFavorites.ApplyUserNameToAllFavorites(this.TestFavorites, VALIDATION_VALUE); }
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"); } }