wip
This commit is contained in:
@@ -51,6 +51,15 @@ export class InMemorySponsorRepository implements ISponsorRepository {
|
||||
return this.sponsors.has(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Seed initial data
|
||||
*/
|
||||
seed(sponsors: Sponsor[]): void {
|
||||
for (const sponsor of sponsors) {
|
||||
this.sponsors.set(sponsor.id, sponsor);
|
||||
}
|
||||
}
|
||||
|
||||
// Test helper
|
||||
clear(): void {
|
||||
this.sponsors.clear();
|
||||
|
||||
Reference in New Issue
Block a user