Exemplo n.º 1
0
        // ----------------------------------------------------------------------------------------
        /// <!-- BuildDatabase_Test -->
        /// <summary>
        ///      Tests various knowledge database construction methods
        /// </summary>
        ///[Test]

        public void BuildDatabase_Test()
        {
            RichSqlCommand.BuildSchema(EndemeAccess.EnSchema, "generictestaccount", _conn, Throws.Actions, "O");

            EndemeTableFactory_old.BuildEndemeTable(_conn);
            EndemeTableFactory_old.BuildEndemeCharacteristicTable(_conn);
            EndemeTableFactory_old.BuildEndemeIndexKeyTable(_conn);
            EndemeTableFactory_old.BuildEndemeIndexTable(_conn);
            EndemeTableFactory_old.BuildEndemeSetTable(_conn);

            EndemeTableFactory_old.BuildEndemeCharValueTable_old(_conn);
            EndemeTableFactory_old.BuildEndemeListItemTable_old(_conn);
            EndemeTableFactory_old.BuildEndemeMemberTable_old(_conn);
            EndemeTableFactory_old.BuildEndemeOrganizationTable_old(_conn);
            EndemeTableFactory_old.BuildEndemeUserTable_old(_conn);
            EndemeTableFactory_old.BuildEndemeMeaningTable_old(_conn);

            // check to see that the tables exist
        }
Exemplo n.º 2
0
 // ----------------------------------------------------------------------------------------
 /// <!-- BuildSchema_Test -->
 /// <summary>
 ///      Tests the RichDataTable.Add method
 /// </summary>
 ///[Test]
 public void BuildSchema_Test()
 {
     EndemeTableFactory_old.DropEndemeTables(_conn, Throws.Actions, "I");
     RichSqlCommand.BuildSchema(EndemeAccess.EnSchema, "generictestaccount", _conn, Throws.Actions, "O");
     RichSqlCommand.DropSchema(EndemeAccess.EnSchema, _conn, Throws.Actions, "O");
 }