mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
add stub methods for repo
This commit is contained in:
23
src/repositories/InMemoryParkingRepository.ts
Normal file
23
src/repositories/InMemoryParkingRepository.ts
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
import { ParkingGetterSetterRepository } from "./ParkingGetterSetterRepository";
|
||||||
|
import { IParkingStructure } from "../entities/ParkingRepositoryEntities";
|
||||||
|
|
||||||
|
export class InMemoryParkingRepository implements ParkingGetterSetterRepository {
|
||||||
|
async addOrUpdateParkingStructure(structure: IParkingStructure): Promise<void> {
|
||||||
|
}
|
||||||
|
|
||||||
|
async clearParkingStructureData(): Promise<void> {
|
||||||
|
}
|
||||||
|
|
||||||
|
async getParkingStructureById(id: string): Promise<IParkingStructure | null> {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
async getParkingStructures(): Promise<IParkingStructure[]> {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
async removeParkingStructureIfExists(id: string): Promise<IParkingStructure | null> {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user