public bool TestAccount(UserInfo user, string password) { if(user == null) throw new ArgumentNullException("user"); if(password == null) throw new ArgumentNullException("password"); return TryManualLogin(user.Username, password) != null; }