public void IsPersistedTest() { var obj = new ObjectGraphWalker(); var manager = new MiniSessionManager(); var session = manager.OpenSession(); Assert.AreEqual(null, obj.IsPersisted(new User(), session)); }
public void AssociateGraphWithSessionTest() { var obj = new ObjectGraphWalker(); var manager = new MiniSessionManager(); var session = manager.OpenSession(); Assert.AreEqual(null, obj.IsPersisted(new User(), session)); var user = obj.AssociateGraphWithSession(new User(), manager); //Assert.AreEqual("", user.Name); }