injected repository when register a event sourced model class