public void GetJournalsSecondPage() { var proxy = new JournalsProxy(); var response = proxy.GetJournals(pageSize: 2); var idsFromPage1 = response.DataObject.Journals.Select(i => i.TransactionId).ToList(); response = proxy.GetJournals(pageNumber: 2); Assert.NotNull(response); Assert.True(response.IsSuccessfull); response.DataObject.Journals.ForEach(i => Assert.DoesNotContain(i.TransactionId, idsFromPage1)); }
public void GetJournalsPageSize() { var proxy = new JournalsProxy(); var response = proxy.GetJournals(pageNumber: 1, pageSize: 2); Assert.NotNull(response); Assert.True(response.IsSuccessfull); Assert.Equal(response.DataObject.Journals.Count, 2); }