Exemplo n.º 1
0
        public void Init(string connection)
        {
            System.Data.SqlServerCe.SqlCeConnection con = new System.Data.SqlServerCe.SqlCeConnection(connection);

            actionAdapter.Connection      = con;
            conditionAdapter.Connection   = con;
            elementAdapter.Connection     = con;
            recognitionAdapter.Connection = con;
            scriptAdapter.Connection      = con;
            stepAdapter.Connection        = con;
            usersAdapter.Connection       = con;
            websiteAdapter.Connection     = con;
            validationAdapter.Connection  = con;
            scvta.Connection = con;
            usersAdapter.Fill(DB.users);

            recognitionAdapter.Fill(DB.recognition);
            elementAdapter.Fill(DB.element);
            websiteAdapter.Fill(DB.website);

            actionAdapter.Fill(DB.action);
            conditionAdapter.Fill(DB.condition);
            stepAdapter.Fill(DB.step);
            scriptAdapter.Fill(DB.script);
            validationAdapter.Fill(DB.validation);

            IsInitialized = true;
        }
Exemplo n.º 2
0
        public void FillTest()
        {
            elementTableAdapter target = new elementTableAdapter();  // TODO: Initialize to an appropriate value

            AutoWebAgentDBDataSet.elementDataTable dataTable = null; // TODO: Initialize to an appropriate value
            int expected = 0;                                        // TODO: Initialize to an appropriate value
            int actual;

            actual = target.Fill(dataTable);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }