repository mocked as component for dependency injection