public virtual Pager <AssortmentDto> ShowAssortment(uint assortimentId) { return(Slave(session => { uint page = 0; if (assortimentId != 0) { page = Assortment.GetPage(session, assortimentId); } return Assortment.Search(session, page, null); })); }
public void Get_page() { var assortments = Assortment.Search(session, 3, null); Assert.That(Assortment.GetPage(session, assortments.Content[3].Id), Is.GreaterThan(3)); }