Пример #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;
                }
            }
        }
Пример #2
0
        public void UpdateTest3()
        {
            actionTableAdapter    target  = new actionTableAdapter(); // 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.");
        }
Пример #3
0
        public void UpdateTest()
        {
            actionTableAdapter target = new actionTableAdapter(); // 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
            Nullable <int>     p3     = new Nullable <int>();     // TODO: Initialize to an appropriate value
            int p4       = 0;                                     // TODO: Initialize to an appropriate value
            int expected = 0;                                     // TODO: Initialize to an appropriate value
            int actual;

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