Separation of interfaces and implementation
- by bonefisher
From assembly(or module) perspective, what do you think of separation of Interface (1.assembly) and its Implementation (2.assembly)?
In this way we can use some IoC container to develop more decoupling desing..
Say we have an assembly 'A', which contains interfaces only.
Then we have an assembly 'B' which references 'A' and implements those interfaces..It is dependent only on 'A'.
In assembly 'C' then we can use the IoC container to create objects of 'A' using dependency injection of objects from 'B'.
This way 'B' and 'C' are completely unaware (not dependent) of themselves..