예제 #1
0
        private static MYUser register(string name)
        {
            MYUser user = new MYUser {
                Name = name, Password = Helper.PASSWORD
            };

            user.Register(zhangsan);
            user.Register(zhangsan);
            return(user);
        }
예제 #2
0
        public void Register(string username, string password)
        {
            MYUser user = new MYUser
            {
                Name     = username,
                Password = password
            };

            user.Register(user);
            _userRepoistory.Save(user);
        }