Use this when using FakeXrmEasy to mock any .net code for testing against Microsoft Dynamics CRM 2011+
FakeXrmEasy is an open source automated testing framework specifically designed for Dynamics CRM versions 2011, 2013, 2015 and 2016.
For more information check FakeXrmEasy website