예제 #1
0
        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;
        }
예제 #2
0
 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;
       }
 }
예제 #3
0
 public void SetCustomProfileShouldSaveProfile([CoreDb]Db db, UserProfileProvider userProfileProvider, UserProfile userProfile, IDictionary<string, string> properties)
 {
     userProfileProvider.SetCustomProfile(userProfile, properties);
       userProfile.Received().Save();
 }