private WebClientInformation GetClientInformation(Boolean refresh)
 {
     if (_clientInformation.IsNull() || refresh)
     {
         _clientInformation = new WebClientInformation();
     }
     return(_clientInformation);
 }
        protected WebClientInformation GetClientInformation(ApplicationIdentifier applicationIdentifier = ApplicationIdentifier.AnalysisPortal)
        {
            WebLoginResponse loginResponse;

            if (_clientInformation.IsNull())
            {
                loginResponse = WebServiceProxy.GeoReferenceService.Login(Settings.Default.TestUserName,
                                                                          Settings.Default.TestPassword,
                                                                          applicationIdentifier.ToString(),
                                                                          false);
                _clientInformation        = new WebClientInformation();
                _clientInformation.Locale = loginResponse.Locale;
                _clientInformation.Role   = null;
                _clientInformation.Token  = loginResponse.Token;
            }

            return(_clientInformation);
        }