Inveigled By Design

The art of persuasive design

Unit-Testing WebClient Dependencies in Silverlight

If you are going to be interfacing with web services in Silverlight, there’s a good chance you’ll have classes that are dependent on System.Net.WebClient. Unfortunately, because of some of the security restrictions in Silverlight, you cannot mock or stub the System.Net.WebClient class. In addition, the constructor for DownloadStringAsyncCompleteEventArgs is internal, making it difficult [...]

Isolated Unit Testing using Rhino Mocks and StructureMap

Get the code here: TestingInIsolation.zip

Unit testing classes that touch systems like a database or the file system used to be quite a laborious task, but with some of the free testing tools available on the web today, the job has become much easier. For this example, I’ll use three readily available testing tools:

Rhino Mocks [...]

Creative Commons License
Content on this site is licensed under a Creative Commons Attribution-Share Alike 3.0 License
Copyright © 2009 Inveigled Software