示例#1
0
 public void WhenAUserIsAdded(string userName)
 {
     Try(() =>
     {
         IUserListItem userListItem = IdentityManagementService.CreateUser(userName);
         nameIdentifierPairs.Add(userName, userListItem.Id);
     });
 }
示例#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);
        }
示例#3
0
 public void WhenAUserWithNoNameIsAdded()
 {
     Try(() => IdentityManagementService.CreateUser(string.Empty));
 }