
        };

        pager.extendWithPage(viewModel);
        ko.applyBindings(viewModel);

        pager.start();

        asyncTest("Should trigger hide in sub pages", function () {

            until(function () {
                return beforeStartShowCalled;
            }, function (success) {
                ok(success, "beforeStartShowCalled");
                until(function () {
                    return beforeFooShowCalled;
                }, function (success2) {
                    ok(success2, "