Ejemplo n.º 1
0
        public void TestStoredClassesByAssembly()
        {
            Hashtable classesByAssembly = DbInformation.StoredClassesByAssembly();

            foreach (DictionaryEntry entry in ClassesCollectionByAssembly(typeof(Item), typeof(Element)))
            {
                Assert.IsTrue(classesByAssembly.ContainsKey(entry.Key));
                CollectionAssert.AreEqual((IEnumerable)entry.Value, (IEnumerable)classesByAssembly[entry.Key]);
            }
        }
Ejemplo n.º 2
0
        public DataInserter()
        {
            InitializeComponent();

            this.height_start = this.Height;

            this.dbInformation = new DbInformation();
            this.dbFlyAway     = new DbExecute();

            //Set up
            this.ConfigureConnection();
        }
Ejemplo n.º 3
0
        public void TestStoredClasses()
        {
            Hashtable classes = DbInformation.StoredClasses();

            CollectionAssert.AreEqual(ClassesCollection(typeof(Item), typeof(Element)), classes);
        }
Ejemplo n.º 4
0
 public dbInteraction()
 {
     dbInfo             = new DbInformation();
     clsRenderHierarchy = new RenderHierarchy();
 }
Ejemplo n.º 5
0
 public long DbCreationTime()
 {
     return(DbInformation.getDatabaseCreationTime());
 }
Ejemplo n.º 6
0
 public long GetTotalDbSize()
 {
     return(DbInformation.getTotalDatabaseSize());
 }
Ejemplo n.º 7
0
 public long GetFreeSizeOfDb()
 {
     return(DbInformation.GetFreeSizeofDatabase());
 }
Ejemplo n.º 8
0
 public int NoOfClassesInDb()
 {
     return(DbInformation.GetNumberOfClassesinDB());
 }
Ejemplo n.º 9
0
 public Hashtable FetchAllStoredClassesForAssembly()
 {
     return(DbInformation.StoredClassesByAssembly());
 }
Ejemplo n.º 10
0
 public Hashtable FetchAllStoredClasses()
 {
     return(DbInformation.StoredClasses());
 }