Esempio n. 1
0
        public User getUser(string userName, string password)
        {
            GetUserImpl getUserService = new GetUserImpl();
            User        user           = getUserService.getUser(userName, password);

            return(user);
        }
Esempio n. 2
0
        public void HttpGetUser()
        {
            getUser = new GetUserImpl();
            User user = getUser.getUser("Admin", "Password");

            if (user.validate())
            {
                Console.WriteLine("User: "******"Wrong username or password");
            }
        }
Esempio n. 3
0
        public User createUser(User user)
        {
            CreateUserImpl createUserService = new CreateUserImpl();
            bool           status            = createUserService.createUserAsync(user);
            User           u = null;

            Console.WriteLine(status);
            if (status)
            {
                GetUserImpl getUserService = new GetUserImpl();
                u = getUserService.getUser(user.UserName, user.Password);
                Console.WriteLine("UserManager : User: "******"Error creating user : UserManager : createUser");
            }


            return(u);
        }