export class StubPendingReviewRequestGateway {
    storage = new Map();
    saveCount = 0;
    deleteCount = 0;
    async save(pending) {
        this.storage.set(pending.pendingReviewRequestId, { ...pending });
        this.saveCount += 1;
    }
    async load(pendingReviewRequestId) {
        const found = this.storage.get(pendingReviewRequestId);
        return found ? { ...found } : null;
    }
    async listAll() {
        return Array.from(this.storage.values()).map((entry) => ({ ...entry }));
    }
    async delete(pendingReviewRequestId) {
        this.deleteCount += 1;
        return this.storage.delete(pendingReviewRequestId);
    }
    prepopulate(pending) {
        this.storage.set(pending.pendingReviewRequestId, { ...pending });
    }
    clear() {
        this.storage.clear();
        this.saveCount = 0;
        this.deleteCount = 0;
    }
}
//# sourceMappingURL=pendingReviewRequest.stub.js.map