Exemplo n.º 1
0
        public void DeleteTest()
        {
            actionTableAdapter target = new actionTableAdapter(); // TODO: Initialize to an appropriate value
            int p1       = 0;                                     // TODO: Initialize to an appropriate value
            int expected = 0;                                     // TODO: Initialize to an appropriate value
            int actual;

            actual = target.Delete(p1);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Exemplo n.º 2
0
        /// <summary>
        /// deletes step conditions and actions
        /// </summary>
        /// <remarks>
        /// 1. select and delete step's condition rows
        /// 2. select and delete step's action rows
        /// 3. clear action and condition lists for the step
        /// </remarks>
        /// <param name="step_id">the step id</param>
        public void StepUpdateStart(int step_id)
        {
            this.step_id = step_id;
            var rowsToDelete = GetStepConditionsRaw(step_id);

            foreach (var row in rowsToDelete)
            {
                conditionAdapter.Delete(row.id);
            }
            var rowsToDelete2 = GetStepActionsRaw(step_id);

            foreach (var row in rowsToDelete2)
            {
                actionAdapter.Delete(row.id);
            }

            SaveChanges("action", "condition");
            stepConditions.Clear();
            stepActions.Clear();
        }