private void t01_Repositories(CMISTestSystem con) { List <CMISRepository> repositories = loadRepositories(con); Assert.AreEqual(con.NumberOfRepositories, repositories.Count()); Assert.IsTrue(repositories.Where(n => n.Id == con.Repository).Count() == 1); cmisClient.SelectRepository(con.Repository); Assert.AreEqual(con.SupportedVersion, cmisClient.GetSupportedVersion()); }
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); }