There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Moq Unit testing using MEF Container
In our WPF MVVM Application , we are using MEF to create the instances of class.
We are using Moq Framework to perform unit testing for our classes, we have added the parts to Container and this will be used in our pathways whenever a instance is created.
In few instances where a type is created multiple times in our workflows we see same instance is retrieved each time from container, also our container is static in our application.
Please pour in your ideas how you have performed Unit testing for MEF+ MVVM applcations using Moq or any other frameworks.