private static bool SafeHandle(IHttpHandlerMock handler, HttpListenerContext context) { try { return(handler.Handle(context)); } catch (Exception) { return(false); } }
public HttpMock Add(IHttpHandlerMock handlerMock) { _handlers.Add(handlerMock); return(this); }