We are busy developing a Composite Application Library (PRISM) applicationusing Visual Studio 2010, WPF and Silverlight 4.0. We have managed to get asnear as 100% code sharing between our WPF and Silverlight application becauseof the Telerik WPF/SL controls. Currently we are spending our time to write theUnit Tests for our Shell application and our common CAL modules before we startporting the existing application onto the new framework.
We have investigated standard Microsoft Visual Studio Unit Tests in additionto Rhino Mocks and Moq. We have had many troubles in getting both Rhino Mockand Moq to test our CAL application, specifically when it comes to testing theAsynchronous ICommand call-backs and the IEventAggregator subscriptions.
Yesterday we decided to investigate the Telerik JustMock mocking libraries,however we're still failing to completely test our CAL application.
Can you please provide us with a sample of testing an Asynchronous ICommandand a event publication and subscription using the IEventAggregator. I'm hopingthat JustMock is CAL friendly.