/// <summary>
        /// Unlock the user vault.
        /// </summary>
        /// <returns>True if the vault was unlocked.</returns>
        public bool UnlockVault()
        {
            if (!IsUserLoggedIn)
            {
                ConsoleDebugLogger.LogError("Cann't unlock the vault because the user is not logged in.");
                return(false);
            }
            IsVaultUnlocked = _logic.UnlockVault(_credentials);
            ConsoleDebugLogger.Log(string.Format("Unlocking vault {0}", IsVaultUnlocked ? "successful" : "failed"));

            return(IsVaultUnlocked);
        }
        private bool CheckUnlockedVault()
        {
            if (!IsUserLoggedIn)
            {
                ConsoleDebugLogger.LogError("[CheckUnlockedVault] The user is not logged in.");
                return(false);
            }

            if (!IsVaultUnlocked)
            {
                ConsoleDebugLogger.LogError("[CheckUnlockedVault] The vault is not unlocked.");
                return(false);
            }
            return(true);
        }