public object GetOnlineProxy(Request request, string networkName) { MockDisposableProxy newProxy = new MockDisposableProxy(); LastProxy = newProxy; return(newProxy); }
public void ReleaseOnlineProxy(object onlineProxy) { if (onlineProxy == null) { throw new ArgumentException(); } MockDisposableProxy proxy = onlineProxy as MockDisposableProxy; if (proxy == null) { throw new ArgumentException(); } proxy.Dispose(); }