Under the skin testing for Application using prism framework

Topics: Prism v4 - WPF 4
Mar 16, 2011 at 10:28 AM

I am trying to test an application which uses prism framework. I am doing under the skin testing i.e. using viewmodels setting properties and executing commands.

As we all know in prism views give notifications like IsActive/IsInactive etc. which trigger events but viewmodels are incapable of doing this. As I am doing under the skin testing which we call api testing I dont have views. So my problem is I will have to simulate view which I don't want to do.

Has anybody faced and solved such an issue.

Thanks for any input.

Mar 16, 2011 at 7:36 PM


You might find the following chapter from the Prism MSDN documentation useful, which treats the subject of the capability of ViewModels to raise interaction requests to the view. That could be useful for your testability requirement.

Chapter 6: Advanced MVVM Scenarios

I hope you find this helpful.

Guido Leandro Maliandi