public void TestDeleteTodoItemByRowsDeleted() { TodoSqlDal todoSqlDal = new TodoSqlDal(connectionString); int rowsDeleted = todoSqlDal.DeleteTodoItem(1); Assert.AreEqual(1, rowsDeleted); }
public void TestDeleteTodoItemByRowsRemaining() { TodoSqlDal todoSqlDal = new TodoSqlDal(connectionString); _ = todoSqlDal.DeleteTodoItem(1); int rowsRemaining = GetRowCount("TodoItems"); Assert.AreEqual(3, rowsRemaining); }