Building up the Repository and event store