/// <summary> /// Creates a mock object. /// </summary> /// <typeparam name="TMock">The type of object to mock.</typeparam> /// <returns></returns> /// <remarks> /// This is where you'd use Reflection.Emit to generate a mock implementation /// </remarks> public TMock CreateMock <TMock>() { IMockRecorder recorder = new MockRecorder <TMock>(); _mockRecorders.Add(recorder); return(MockObjectFactory.CreateMock <TMock>(recorder)); }