public void TestDeleteWithRowAm()
        {
            DataTable tb = sp.GetTableProduct();

            sp.Del(-1, tb);
            int expected = 3;
            int actual   = tb.Rows.Count;

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
 public int DelProduct_Bus(int row, DataTable dt)
 {
     try
     {
         int number = product.Del(row, dt);
         if (number > 0)
         {
             return(number);
         }
         else
         {
             return(-1);
         }
     }
     catch (SqlException ex)
     {
         throw ex;
     }
 }