public void Insert_to_networkTableTest()
        {
            NetworkPageDetails npd = new NetworkPageDetails();

            npd.profileName = "TestingProfile";
            Assert.AreEqual(DatabaseMessage.databaseError, Database_Helper.Insert_to_networkTable(npd));
        }
        public void Insert_to_proxyTableTest()
        {
            ProxyPageDetails ppd = new ProxyPageDetails();

            ppd.profileName = "TestingProfile";
            ppd.enableProxy = 0;
            Assert.AreEqual(DatabaseMessage.databaseError, Database_Helper.Insert_to_proxyTable(ppd));
        }
 public Category_DB()
 {
     this.db_helper = new Database_Helper();
 }
 public void Readd_proxyTableTest()
 {
     Assert.AreEqual("TestingProfile", Database_Helper.Readd_proxyTable("TestingProfile").profileName);
 }
        private Database_Helper db_helper; // Bien ket noi database

        public Account_DB()
        {
            this.db_helper = new Database_Helper();
        }
Ejemplo n.º 6
0
 public Bill_DB()
 {
     this.data_helper = new Database_Helper();
 }
Ejemplo n.º 7
0
 public Book_DB()
 {
     this.db_helper = new Database_Helper();
 }