Unit Testing Microsoft Dynamics CRM 2011 Plug-ins with Microsoft Fakes

Visual Studio 2012 Ultimate ships with a new isolation framework called Microsoft Fakes. This article describes how we can use Microsoft Fakes to unit test plug-in code without a dependency on a Microsoft Dynamics CRM 2011 server, allowing us to easily test logic in isolation, from a known state.  This post assumes a certain level…