public void TestSession() { ISession session = YangNHibernate.getSession(); Assert.IsNotNull(session); session.Close(); }
public void TestSaveUser() { User user = createUser(); ISession session = YangNHibernate.getSession(); ITransaction tx = session.BeginTransaction(); session.Save(user); tx.Commit(); session.Close(); }