Uses DependencyResolver explicitly.