public void UpdateTest() { var ls = articleManage.Get().Skip(2).Take(1).First(); ls.Name = "C# jicheng"; bool lk = articleManage.Update(ls); Assert.AreEqual(lk, true); }
public void UpdateTest() { var ls = commentManage.Get().Where(it => it.CommentatorId == "1").First(); ls.Content = "测试"; var lk = commentManage.Update(ls); Assert.AreEqual(lk, true); }
public void UpdateTest() { var ls = userManage.Get().Where(it => it.Id == 3).ToList(); ls.ForEach(item => { item.Password = "******"; bool lk = userManage.Update(item); Assert.AreEqual(lk, true); }); }