Beispiel #1
0
 public void WhenAUserIsAdded(string userName)
 {
     Try(() =>
     {
         IUserListItem userListItem = IdentityManagementService.CreateUser(userName);
         nameIdentifierPairs.Add(userName, userListItem.Id);
     });
 }
Beispiel #2
0
        private void CreateUser(string userName, Table customPropertiesTable)
        {
            List <KeyValuePair <string, string> > customProperties = customPropertiesTable.Rows
                                                                     .Select(row => new KeyValuePair <string, string>(row["Name"], row["Value"]))
                                                                     .ToList();

            IUserListItem userListItem = IdentityManagementService.CreateUser(userName, customProperties);

            nameIdentifierPairs.Add(userName, userListItem.Id);
        }