Quantcast
Channel: Managed Extensibility Framework
Viewing all articles
Browse latest Browse all 265

Created Unassigned: Moq Unit testing using MEF Container [14623]

$
0
0
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







Viewing all articles
Browse latest Browse all 265

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>