It seems the Model-View-ViewModel (MVVM) is the preferred pattern at present for implementing cleanly separated SL apps (& WPF client apps). Aims to increase testability and leverage data-binding in XAML to implement the View part of the pattern. The Model is responsible for accessing data (e.g. WCF service, REST, etc) and passing it to the ViewModel (which holds state and provides operations to the View)- the View then binds to objects in the ViewModel class. A view has a reference to a Model interface rather than a concrete implementation, this allows testing of the Model in isolation. We could implement the ViewModel as an interface or for testing purpose just build a stub Model and pass that the the ViewModel (going the whole hog you could use dependency injection such as Unity for Silverlight or Ninject to wire the parts together).
More info on MVVM:
http://jonas.follesoe.no/YouCardRevisitedImplementingTheViewModelPattern.aspx
http://msdn.microsoft.com/en-us/magazine/dd458800.aspx
http://www.nikhilk.net/Silverlight-ViewModel-Pattern.aspx
SHARE:
It doesn't appear there is any VS IDE integrated support for running SL unit tests but there is a browser-based unit testrunner,
To get the correct templates follow this straightforward guide:
Then just create your unit test project(s) and write tests using the same attributes as [TestClass] [TestMethod] etc.
SHARE:
If you've used the BlogEngine.NET import tool and your post are not showing you could try the following:
http://mcgeown.co.uk/BlogEngine/post/2008/05/09/Force-BlogEngineNet-to-update-its-cache-after-an-import.aspx
I recycled the IIS app pool and that seems to have flushed BEs cache.
SHARE:
Just managed to successfully get my posts from Blogger into DCT.
Read a post suggesting using a new temp WordPress blog which can import directly from Blogger. Then export, then use the Import tool in the Settings page of BlogEngine.Net (which launches a ClickOnce app). Although in retrospect I wonder if just pointing the Importer to the Blogger RSS feed might have made the WordPress step unnecessary.
There is a caveat in that comments are not imported - also did not attempt images\files import.
SHARE: