Abstract of repositories, Dependeny injection