import { Encoder } from '../../../src/use-cases/ports/encoder' ; export class FakeEncoder implements Encoder { public async encode ( plain ) { return plain + 'ENCRYPTED' ; } public async compare ( plain , hashed ) { if ( plain + 'ENCRYPTED' === hashed ) { return true ; } return false ; } }