Exemplo n.º 1
0
        public void GetTotalNumberOfPages_WhenInvoked_ReturnExpectedValue(int totalRecords, int pageSize, int expectedNumberOfPages)
        {
            systemUnderTest.PageSize = pageSize;
            SetMockResultSet(totalRecords);
            var actualResult = systemUnderTest.GetTotalNumberOfPages();

            Assert.AreEqual(expectedNumberOfPages, actualResult);
        }
Exemplo n.º 2
0
 private void PersistPagingOptions(LogViewerManager logViewer)
 {
     lblTotalPages.Text    = logViewer.GetTotalNumberOfPages().ToString();
     hfSortByColumn.Value  = logViewer.SortColumnName;
     hfSortDirection.Value = logViewer.SortType.ToString();
 }