示例#1
0
        private static void AddItem()
        {
            var newItem = TodoHelper.GetTodo();

            if (newItem != null)
            {
                Repo.Add(newItem);
            }
        }
示例#2
0
 public void InsertTest()
 {
     ClearDb();
     _repo.Add(new Todo());
     Assert.Single(_repo.GetAll());
 }