See here for an example on how to use Moles: http://research.microsoft.com/en-us/projects/stubs/moles.aspx