Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public void UpdateTest()
        {
            var ls = commentManage.Get().Where(it => it.CommentatorId == "1").First();

            ls.Content = "测试";
            var lk = commentManage.Update(ls);

            Assert.AreEqual(lk, true);
        }
Esempio n. 3
0
        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);
            });
        }