Esempio n. 1
0
        public void SaveChanges(params Tables[] tables)
        {
            foreach (Tables table in tables)
            {
                switch (table)
                {
                case Tables.ACTION:
                    actionAdapter.Update(DB.action);
                    actionAdapter.Fill(DB.action);
                    break;

                case Tables.CONDITION:
                    conditionAdapter.Update(DB.condition);
                    conditionAdapter.Fill(DB.condition);
                    break;

                case Tables.ELEMENT:
                    elementAdapter.Update(DB.element);
                    elementAdapter.Fill(DB.element);
                    break;

                case Tables.RECOGNITION:
                    recognitionAdapter.Update(DB.recognition);
                    recognitionAdapter.Fill(DB.recognition);
                    break;

                case Tables.SCRIPT:
                    scriptAdapter.Update(DB.script);
                    scriptAdapter.Fill(DB.script);
                    break;

                case Tables.STEP:
                    stepAdapter.Update(DB.step);
                    stepAdapter.Fill(DB.step);
                    break;

                case Tables.USERS:
                    usersAdapter.Update(DB.users);
                    usersAdapter.Fill(DB.users);
                    break;

                case Tables.VALIDATION:
                    validationAdapter.Update(DB.validation);
                    validationAdapter.Fill(DB.validation);
                    break;

                case Tables.WEBSITE:
                    websiteAdapter.Update(DB.website);
                    websiteAdapter.Fill(DB.website);
                    break;

                default:
                    break;
                }
            }
        }
        public void UpdateTest3()
        {
            websiteTableAdapter   target  = new websiteTableAdapter(); // TODO: Initialize to an appropriate value
            AutoWebAgentDBDataSet dataSet = null;                      // TODO: Initialize to an appropriate value
            int expected = 0;                                          // TODO: Initialize to an appropriate value
            int actual;

            actual = target.Update(dataSet);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
        public void UpdateTest()
        {
            websiteTableAdapter target = new websiteTableAdapter(); // TODO: Initialize to an appropriate value
            string p1       = string.Empty;                         // TODO: Initialize to an appropriate value
            string p2       = string.Empty;                         // TODO: Initialize to an appropriate value
            int    p3       = 0;                                    // TODO: Initialize to an appropriate value
            int    expected = 0;                                    // TODO: Initialize to an appropriate value
            int    actual;

            actual = target.Update(p1, p2, p3);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }