public TestUser(StringTestObject testUser, bool useCaseInsensitive) { Uid = testUser.get("userDUZ", useCaseInsensitive); Name = new PersonName(testUser.get("userName", useCaseInsensitive)); SSN = new SocSecNum(testUser.get("userSSN", useCaseInsensitive)); PermissionString = testUser.get("context", useCaseInsensitive); }
public User getLdapUser() { IApplicationContext ctx = ContextRegistry.GetContext(); StringTestObject testObj = (StringTestObject)ctx.GetObject("LDAP"); User user = new User(); user.Domain = testObj.get("domain"); user.UserName = testObj.get("username"); user.Pwd = testObj.get("password"); return(user); }
internal static User getTestUser(string userTag) { IApplicationContext ctx = ContextRegistry.GetContext(); StringTestObject testObj = (StringTestObject)ctx.GetObject(userTag); User user = new User(); user.Uid = testObj.get("userDUZ"); user.Name = new PersonName(testObj.get("userName")); user.SSN = new SocSecNum(testObj.get("userSSN")); user.LogonSiteId = new SiteId(testObj.get("siteCode"), testObj.get("siteName")); user.UserName = testObj.get("accessCode"); user.Pwd = testObj.get("verifyCode"); user.PermissionString = testObj.get("context"); return(user); }