public void TestOrmAdapter_Remove2() { OrmAdapter <Test_BudgetDbContext2> _oa = new OrmAdapter <Test_BudgetDbContext2>(_tdb); int BillCount = _oa.GetBills().Count(); _oa.RemoveBill(1); int newBillCount = _oa.GetBills().Count(); Assert.True(newBillCount == BillCount - 1); }
//Delete a DB object Methods public bool DeleteBill(int id) { return(_oa.RemoveBill(id)); }