Inheritance: IUserProfileProvider
    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();
 }
 public void GetCustomPropertiesShouldReturnEmptyProperties([CoreDb]Db db, [Content]ProfileTemplate template, DbItem profileItem, UserProfileProvider userProfileProvider, UserProfile userProfile)
 {
   userProfileProvider.GetCustomProperties(userProfile).Should().BeEmpty();
 }
 public void GetCustomPropertiesShouldReturnProperties([CoreDb]Db db, [Content]ProfileTemplate template, [Content]DbItem profileItem, UserProfileProvider userProfileProvider, UserProfile userProfile)
 {
   userProfileProvider.GetCustomProperties(userProfile).Should().ContainKeys("FirstName", "LastName", "Phone");
 }