Implementation of repository for event sourced entities and  skeleton for its tests.