I have interface IModule and several classes that implements it.
In test i need to create instance of each type(class) implementing that interface.
Is is possible(with StructureMap)?
I have interface IModule and several classes that implements it. In test i need
Share
I’m not familiar with StructureMap. Anyway you need to have the list of types implementing IModule, then you create an object of each type in the list.
To get the list of types dynamically, it can be:
To instantiate the types: