public void TestMVCModelRemoveItem() { bool removeSuccessful = false; Console.WriteLine("Number of Records Before: " + modelDS.Tables[0].Rows.Count); removeSuccessful = model.RemoveTodoListItem(modelDS.Tables[0].Rows.Count - 1); if (removeSuccessful) { newModelDS = model.GetTodoList(); Console.WriteLine("Number of Records After: " + newModelDS.Tables[0].Rows.Count); } else { Assert.Fail("There was an error removing the Todo"); } }
public bool RemoveTodo(int recordID) { return(todoModel.RemoveTodoListItem(recordID)); }