public void DeleteThrows404WhenIdNotFound()
        {
            var todoRepository = TestHelpers.CreateMockRepository<ToDoItem>();
            var controller = new ToDoController(todoRepository);

            var id = Guid.NewGuid();
            Assert.Throws<HttpResponseException>(() => controller.DeleteToDo(id));
        }
        public void DeleteWorks()
        {
            var todoRepository = TestHelpers.CreateMockRepository<ToDoItem>();
            var controller = new ToDoController(todoRepository);

            var item = new Web.Models.ToDoItem();
            item.Title = "Test Title";
            item.Item = "Test Item";
            item = controller.PostToDo(item);

            item = controller.DeleteToDo(item.Id);
            Assert.NotNull(item);
        }