public ValidationStatus ValidateInfo(SystemAccount systemAccount, string patientIdentifier, DateTime dateOfBirth) { if (string.Equals(patientIdentifier, UniqueIdentifier) && DateOfBirth.Value == dateOfBirth) { systemAccount.Validate(); UserContext.Current.RefreshValidationAttempts(); return(ValidationStatus.Valid); } if (UserContext.Current.ValidationAttempts >= 3) { systemAccount.Lock(); return(ValidationStatus.Locked); } UserContext.Current.FailedValidationAttempt(); return(ValidationStatus.AttemptFailed); }