예제 #1
0
        public Task <(UserInfo user, string InviteRedeemUrl)> InviteUser(
            string displayName,
            string emailAddress,
            string redirectUrl,
            bool letAzureSendRedeemMail = true,
            string messageBody          = null,
            string companyName          = null,
            string messageLanguage      = "nl-NL",
            string givenName            = null,
            string surname = null)
        {
            var user = new UserInfo();

            user.DisplayName = displayName;
            user.FirsName    = givenName;
            user.LastName    = surname;
            user.Username    = emailAddress;
            user.Id          = TestFactory.StringToGUID(emailAddress);
            var t = Tuple.Create(user, redirectUrl);

            InvitedUsers.Add(t);
            Users.Add(user);
            return(Task.FromResult((user, redirectUrl)));
        }
예제 #2
0
 public void PreConfigureGroupOfUser(string userName, string groupName)
 {
     this.AddUserToGroup(TestFactory.StringToGUID(groupName), TestFactory.StringToGUID(userName));
 }
예제 #3
0
 public void PreConfigureGroup(string groupName)
 {
     Groups.Add(new GroupInfo {
         Name = groupName, Id = TestFactory.StringToGUID(groupName)
     });
 }
예제 #4
0
 public void PreConfigureUser(string userName, string displayName)
 {
     Users.Add(new UserInfo {
         DisplayName = displayName, Username = userName, Id = TestFactory.StringToGUID(userName)
     });
 }