public void LoginNotAllowed_ReturnsFail()
 {
     var sub = new UserAccount();
     sub.IsAccountVerified = true;
     sub.IsLoginAllowed = false;
     var result = sub.Authenticate("pass", 10, TimeSpan.FromMinutes(5));
     Assert.IsFalse(result);
 }
 public void FailedLoginCountBelowZero_Throws()
 {
     var sub = new UserAccount();
     sub.Authenticate("pass", -1, TimeSpan.FromMinutes(5));
 }
 public void PasswordEmpty_ReturnsFail()
 {
     var sub = new UserAccount();
     var result = sub.Authenticate("", 10, TimeSpan.FromMinutes(5));
     Assert.IsFalse(result);
 }
 public bool Authenticate()
 {
     return(account.Authenticate(inputUsername, inputPassword));
 }