public void DeleteItem() { var controller = new TodoController(this.unitOfWork); var all = controller.GetAll(); var initialCount = all.Count(); var deleteMe = all.FirstOrDefault(); controller.DeleteItem(deleteMe.Id); var finalCount = controller.GetAll().Count(); Assert.Equal(1, initialCount - finalCount); }