public User getUser(string userName, string password) { GetUserImpl getUserService = new GetUserImpl(); User user = getUserService.getUser(userName, password); return(user); }
public void HttpGetUser() { getUser = new GetUserImpl(); User user = getUser.getUser("Admin", "Password"); if (user.validate()) { Console.WriteLine("User: "******"Wrong username or password"); } }
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); }