Beispiel #1
0
        public void T02_GetTables()
        {
            ISqlClient    sqlClient = getClient();
            List <string> tables    = sqlClient.GetTablenames();

            Assert.IsTrue(tables.Count >= 1);
            Assert.IsTrue(tables.Contains(testTable));
        }
        private bool TestFunction_Read(ref string errorMsg)
        {
            SqlEEViewModel_CT vmConnection = (SqlEEViewModel_CT)CallingViewModel;
            ISqlClient        sqlClient    = vmConnection.GetSqlClient();

            try
            {
                List <string> tables = sqlClient.GetTablenames();
                errorMsg = tables.Count.ToString() + " Tables found";
                return(true);
            }
            catch (Exception e)
            {
                errorMsg = "Could not read solutions\n" + e.Message;
                if (e.InnerException != null)
                {
                    errorMsg += "\n" + e.InnerException.Message;
                }
                return(false);
            }
        }