title: EventHub PartitionContext Class Design
body: <p>I am trying to test my implementation of the IEventProcessor. However, I am having a hard time, because it is impossible to actually mock the PartitionContext class (<a href="https://msdn.microsoft.com/en-us/library/microsoft.servicebus.messaging.partitioncontext.aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/microsoft.servicebus.messaging.partitioncontext.aspx</a>).</p>
  
  <p>For example, I can not verify if the CheckpointAsync() method has been called correctly, because the ICheckpointer interface is internal and the actual method is not virtual.
  Furthermore, I can not inject my own ICheckpointManager instance, because the constructor which allows this, is internal.</p>
  
  <p>What is the design decisions in making everything internal, which would allow me to mock this class?</p>
  
  <p>Either this is really bad design or I am missing something.</p>