import { Subject } from 'rxjs';
import { tap } from 'rxjs/operators';

class PaginatorFake {
    constructor(pageSize = 0, length = 0, pageIndex = 0) {
        this.pageSize = pageSize;
        this.length = length;
        this.pageIndex = pageIndex;
        this.page = new Subject();
        this.page.pipe(tap(page => {
            this.pageSize = page.pageSize;
            this.pageIndex = page.pageIndex;
        })).subscribe();
    }
    next() {
        this.page.next({
            pageIndex: this.pageIndex + 1,
            pageSize: this.pageSize,
        });
    }
}

// region 
// endregion

/**
 * Generated bundle index. Do not edit.
 */

export { PaginatorFake };
//# sourceMappingURL=rxap-data-source-testing.mjs.map
