private List <CMISRepository> loadRepositories(CMISTestSystem con)
 {
     cmisClient.ServerURL     = con.ServerURL;
     cmisClient.TypeOfBinding = con.TypeOfBinding;
     cmisClient.Username      = con.Username;
     cmisClient.Password      = con.Password;
     return(cmisClient.LoadRepositories());
 }
        private bool TestFunction_Login(ref string errorMsg)
        {
            CMISViewModel_CT viewModel = ((CMISViewModel_CT)CallingViewModel);

            try
            {
                cmisClient = viewModel.GetCMISClient() as CMISClient;
                List <CMISRepository> repositories = cmisClient.LoadRepositories();
                cmisClient.SelectRepository(repositories[0].Id);
            }
            catch (Exception e)
            {
                errorMsg = "Could not log in. \n" + e.Message;
                if (e.InnerException != null)
                {
                    errorMsg += "\n" + e.InnerException.Message;
                }
                return(false);
            }
            return(true);
        }