public void TestOrmAdapter_Remove1() { OrmAdapter <Test_BudgetDbContext2> _oa = new OrmAdapter <Test_BudgetDbContext2>(_tdb); int IncomeCount = _oa.GetIncomes().Count(); _oa.RemoveIncome(2); int newIncomeCount = _oa.GetIncomes().Count(); _tdb.Database.EnsureDeleted(); Assert.True(newIncomeCount == IncomeCount - 1); }
public bool DeleteIncome(int id) { return(_oa.RemoveIncome(id)); }