예제 #1
0
 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);
 }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }