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))); }
public void PreConfigureGroupOfUser(string userName, string groupName) { this.AddUserToGroup(TestFactory.StringToGUID(groupName), TestFactory.StringToGUID(userName)); }
public void PreConfigureGroup(string groupName) { Groups.Add(new GroupInfo { Name = groupName, Id = TestFactory.StringToGUID(groupName) }); }
public void PreConfigureUser(string userName, string displayName) { Users.Add(new UserInfo { DisplayName = displayName, Username = userName, Id = TestFactory.StringToGUID(userName) }); }