Example #1
0
        public void TestNextAnchorGivenCurrentPageNoGreaterThanNoOfPages()
        {
            var expected   = string.Empty;
            var pagination = new DfcPagination("testUrl/?testParam=11", 10, 5, "testParam", true);
            var actual     = pagination.NextAnchor();

            expected.IsSame(actual);
        }
Example #2
0
        public void TestNextAnchor()
        {
            var expected   = "<a href=\"http://testurl:80/?testParam=11\" class=\"pagination-item pagination-next\">Next</a>";
            var pagination = new DfcPagination("testUrl/?testParam=10", 100, 5, "testParam", true);
            var actual     = pagination.NextAnchor();

            expected.IsSame(actual);
        }