You can do it this way:
We use Binding Dependency between ISomeInterface
and ISomeInterface <Class1>
. We also define a connection Realization between ISomeInterface<Class1>
and Class1Repo
which implies the use of Class1 where there was a parameter T
(in our case, as a return type).