Skip to content

Instantly share code, notes, and snippets.

View johnnonolan's full-sized avatar

John Nolan johnnonolan

View GitHub Profile
public class AutoMockingContext<TUnderTest> where TUnderTest : class
{
protected static MoqAutoMocker<TUnderTest> autoMocker;
Establish automocking = () => autoMocker = new MoqAutoMocker<TUnderTest>();
protected static Mock<TInterface> Stub<TInterface>() where TInterface : class