public void Todo_Repo_Create_Todo() { Int64 user_id = 3; Todo new_todo = new Todo() { User_ID = user_id, Task_Description = "Test Todo: " + DateTime.Now.ToString(), Task_Complete = false, Timestamp = DateTime.Now }; ITodoRepository db = GetRepository(TodoRepoType.SQL); int expected = db.All.ToList().Count + 1; // We expect to have ONE more after the INSERT db.Insert(new_todo); db.Save(); int actual = db.All.ToList().Count; Assert.AreEqual(expected, actual); }
partial void DeleteTodo(Todo instance);
partial void UpdateTodo(Todo instance);
partial void InsertTodo(Todo instance);