Esempio n. 1
0
        public void CreateNewUser()
        {
            var user = new User();
            user.Login = "******";
            user.Password = "******";
            user.CreatedDate = DateTime.Now;
            user.UpdateDate = DateTime.Now;

            var userService = new UserServiceClient();
            userService.Add(user);
        }
Esempio n. 2
0
 public bool SignUpExecute()
 {
     if (SignUpCanExecute)
     {
         //Request to the server
         var userId = _userService.Add(_userInfo);
         if (userId != Guid.Empty)
         {
             return(true);
             //Window.CurrentView = new LoginPage(Window);
         }
     }
     return(false);
 }
Esempio n. 3
0
 private void CreateUsers()
 {
     for (var i = 0; i < 10; i++)
     {
         var user = new UserInfo()
         {
             Age       = 18 + i,
             FirstName = "User",
             LastName  = "Generated" + i,
             Login     = "******" + i,
             Password  = "******"
         };
         userService.Add(user);
     }
 }