@@ -0,0 +1,607 @@
+package fr.alecharp.picshare.repository;%0A%0Aimport fr.alecharp.picshare.domain.Event;%0A%0Aimport javax.inject.Singleton;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0Aimport java.util.Optional;%0A%0A/**%0A * @author Adrien Lecharpentier%0A */%0A@Singleton%0Apublic class EventRepository %7B%0A    private final Map%3CString, Event%3E eventStore = new HashMap%3C%3E();%0A%0A    public Event save(Event event) %7B%0A        eventStore.put(event.id(), event);%0A        return event;%0A    %7D%0A%0A    public void delete(String id) %7B%0A        eventStore.remove(id);%0A    %7D%0A%0A    public Event findById(String id) %7B%0A        return eventStore.get(id);%0A    %7D%0A%7D%0A

Create dumb repository for events