public CrmCredentialManager(IAppSettingsManager appSettingsManager) { _appSettingsManager = appSettingsManager; _username = _appSettingsManager.RetrieveUsername(); _region = _appSettingsManager.RetrieveRegion(); _orgName = _appSettingsManager.RetrieveOrgName(); if (GetCanConnectWithSavedCredentials()) { _canConnectWithSavedCredentials = true; } if (_canConnectWithSavedCredentials) { if (GetUseSavedCredentials()) { _useSavedCredentials = true; } } }