public void SetCustomProfileShouldSetEmptyProperties([CoreDb] Db db, UserProfileProvider userProfileProvider, UserProfile userProfile, IDictionary <string, string> properties, string nullKey) { properties.Add(nullKey, null); userProfileProvider.SetCustomProfile(userProfile, properties); userProfile.Received()[nullKey] = string.Empty; }
public void SetCustomProfileShouldSetProperties([CoreDb] Db db, UserProfileProvider userProfileProvider, UserProfile userProfile, IDictionary <string, string> properties) { userProfileProvider.SetCustomProfile(userProfile, properties); foreach (var property in properties) { userProfile.Received()[property.Key] = property.Value; } }
public void SetCustomProfileShouldSaveProfile([CoreDb] Db db, UserProfileProvider userProfileProvider, UserProfile userProfile, IDictionary <string, string> properties) { userProfileProvider.SetCustomProfile(userProfile, properties); userProfile.Received().Save(); }