Пример #1
0
 public void RollbackTest()
 {
     int actual = 16;
     if (actual > 0)
     {
         PODelete rollback = new PODelete(actual);
         actual = rollback.Rollback();
         Assert.IsTrue(actual > 0);
     }
 }
Пример #2
0
        public void CommitTest()
        {
            ModelPODelete m = new ModelPODelete()
            {
                UserID = 1513,
                PONumber = "4500211285",
                POItemNumber = "00010"
            };
            PODelete target = new PODelete(m); // TODO: Initialize to an appropriate value
            //int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.Commit();
            Assert.IsTrue(actual > 0);

            VPDAL.ABInvVPEntities dbContext = new VPDAL.ABInvVPEntities();
            var objs = dbContext.ABi_PO.Top("10");

            //Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }