title: Unit testing dialog boxes pop ups using moq in mvvm prism based application
body: <p>I am unit Testing view model in mvvm application which uses prism. I am using moq to unit test view models . I encountered a problem that I am unit testing a method which inside itself call another method and which further calls a password dialog box to pop up . since I am unit testing the very first method so how can I suppress the dialog box pop up as I have no control till my function returns back.Moreover I also want to unit test whether dialog box has popped up.</p>