injecting a repository provider instead of repository