I posted a support ticket for this, but thought I'd ask in the forum as well. As show below, I attempt to JustMock a Prism view. When this unit test runs, and this line is encountered, I get an exception complaining that cannot locate the corresponding XAML for the view. The stack shows us in the constructor of the CommandingView class, calling InitializeComponent, which does not sound like mocking. The text of the excpetion is:
{"The component 'CommandingViewProxy\\+6068b00980684baaaf2f95f50b66a803' does not have a resource identified by the URI '/Infrastructure;component/views/commandingview.xaml'."}
It seems I should possibly be doing something additional to JustMock a Prism view. Or some other setup is needed.
Anyone got any suggestions?
{"The component 'CommandingViewProxy\\+6068b00980684baaaf2f95f50b66a803' does not have a resource identified by the URI '/Infrastructure;component/views/commandingview.xaml'."}
It seems I should possibly be doing something additional to JustMock a Prism view. Or some other setup is needed.
Anyone got any suggestions?
var oCmdView = Mock.Create<CommandingView>();