import ResponseRepositoryPort from '@core/domain/response/port/ResponseRepositoryPort' ; import Response from '@core/domain/response/Response' ; class InMemoryResponseRepositoryAdapter implements ResponseRepositoryPort { responses : Map < string , Response > ; constructor ( ) { this . responses = new Map ( ) ; } save ( response ) { this . responses . set ( response . requestId , response ) ; return Promise . resolve ( ) ; } get ( responseId ) { return Promise . resolve ( this . responses . get ( responseId ) ) ; } } export default InMemoryResponseRepositoryAdapter ;