public void ExecuteWithInterface(IRemoteHttpInterface remoteHttpInterface, Action action) { var oldInstance = Instance; try { action(); } finally { Instance = oldInstance; } }
static RemoteHttpInterface() { Instance = new Impl(); }
public RecordingHttpInterface(IRemoteHttpInterface innerInterface) { InnerInterface = innerInterface; }