예제 #1
0
        public static UserParameters GetValidUser()
        {
            var u = new UserParameters();

            u.username = "******";
            u.password = "******";
            u.email = "*****@*****.**";
            u.passwordQuestion = "TestPasswordQuestion";
            u.passwordAnswer = "TestPasswordAnswer";
            u.isApproved = false;
            u.providerUserKey = null;

            return u;
        }
예제 #2
0
        public static List<UserParameters> GetTestUsers(int numUsers, string prefix)
        {
            List<UserParameters> t = new List<UserParameters>();
            for (int i = 0; i < numUsers; i++)
            {
                var u = new UserParameters();

                u.username = prefix + "TestUser" + i;
                u.password = prefix + "!Password?" + i;
                u.email = u.username + "@testdomain.com";
                u.passwordQuestion = prefix + "TestPasswordQuestion" + i;
                u.passwordAnswer = prefix + "TestPasswordAnswer" + i;
                u.isApproved = true;
                u.providerUserKey = null;

                t.Add(u);
            }
            return t;
        }