1
Vote

Moq Unit testing using MEF Container

description

Hi All,

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.

Thanks,
Nagamani

comments