public void ListAllTest() { using (OpenSession()) { IPaginable <NoFoo> pg = new NoFooPaginable(LastOpenedSession, new DetachedNamedQuery("NoFoo.All")); IList <NoFoo> l = pg.ListAll(); Assert.AreEqual(15, l.Count); } using (OpenSession()) { IPaginable <Foo> pf = new PaginableQuery <Foo>(LastOpenedSession, new DetachedQuery("from Foo")); IList <Foo> l = pf.ListAll(); Assert.AreEqual(15, l.Count); } }
public void ListAllTest() { using (OpenSession()) { IPaginable<NoFoo> pg = new NoFooPaginable(LastOpenedSession, new DetachedNamedQuery("NoFoo.All")); IList<NoFoo> l = pg.ListAll(); Assert.AreEqual(15, l.Count); } using (OpenSession()) { IPaginable<Foo> pf = new PaginableQuery<Foo>(LastOpenedSession, new DetachedQuery("from Foo")); IList<Foo> l = pf.ListAll(); Assert.AreEqual(15, l.Count); } }