public void EditByIdNegativeTest()
        {
            fixture.MockRepo.Setup(t => t.UpdateTodo(It.IsAny <Todo>()));
            var todoService = new TodoService(fixture.MockRepo.Object);

            Assert.Throws <Exception>(() => todoService.EditById(null));
        }
        public void EditByIdTest()
        {
            fixture.MockRepo.Setup(t => t.UpdateTodo(It.IsAny <Todo>()));
            var todoService = new TodoService(fixture.MockRepo.Object);

            todoService.EditById(new Todo());

            fixture.MockRepo.Verify(r => r.UpdateTodo(It.IsAny <Todo>()), Times.Once);
        }