예제 #1
0
        public void TestGetUrlWithPageNoGivenExistingQueryStringWithExpectedParam()
        {
            const string expected   = "http://testurl:80/?otherParam=567&testParam=155";
            var          pagination = new DfcPagination("testUrl/?otherParam=567&testParam=1", 100, 5, "testParam", true);
            var          actual     = pagination.GetUrlWithPageNo(155);

            expected.IsSame(actual);
        }
예제 #2
0
        public void TestGetUrlWithPageNoGivenNoQueryString()
        {
            const string expected   = "http://testurl:80/?testParam=155";
            var          pagination = new DfcPagination("testUrl", 100, 5, "testParam", true);
            var          actual     = pagination.GetUrlWithPageNo(155);

            expected.IsSame(actual);
        }