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

            return(this);
        }