CodePlexProject Hosting for Open Source Software
What is the preferred method of instantiating new ViewModels that use IoC.Get<>() to function inside a MSTest unit test? If the answer is to write your own bootstrapper for the unit tests how can I swap in new eventAggregatore or windowmanagers
per test (for mocking)? It seems there are some problems removing or changing exported values (http://mef.codeplex.com/discussions/78785).
Are there any examples of creating a ViewModel in a unit test that use IoC.Get<>()?
Did I ask one of those questions that are so simple no one could be bothered to answer? Is it a RTFM thing? I'd really appreciate some insight here. Thanks!
There's some good info here that helped me when setting up unit testing when using MEF. Perhaps it will be of some help.
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.