public void Test2() { var o = new PoModel { UserName = "******" }; o.Save(); o = PoModel.FindById(o.Id); Assert.AreEqual("abc", o.UserName); }
public void Test1() { var o = new BaoXiuRS { UserName = "******" }; o.Save(); var p = PoModel.FindById(o.Id); Assert.AreEqual("tom", p.UserName); p.UserName = "******"; p.Save(); p = PoModel.FindById(o.Id); Assert.AreEqual("jerry", p.UserName); }