public Admin(EndpointDb endpointDb, HttpListener listener) { _endpointDb = endpointDb; _listener = listener; _pingmethods = new Dictionary <string, Action <HttpListenerContext> > { { "GET", GoPing }, { "HEAD", GoPing } }; _statusmethods = new Dictionary <string, Action <HttpListenerContext> > { { "GET", GoStatus }, { "HEAD", GoStatus } }; _idmethods = new Dictionary <string, Action <HttpListenerContext> > { { "GET", GoGet }, { "HEAD", GoGet }, { "PUT", GoPut }, { "DELETE", GoDelete } }; _rootmethods = new Dictionary <string, Action <HttpListenerContext> > { { "GET", GoGetAll }, { "HEAD", GoGetAll }, { "POST", GoPost }, { "DELETE", GoDeleteAll } }; }
public void BeforeEach() { Out.Mute = true; _endpointDb = new EndpointDb(); }
public Stubs(EndpointDb endpointDb, HttpListener listener) { _endpointDb = endpointDb; _listener = listener; }
public Stubs(EndpointDb endpointDb) : this(endpointDb, new HttpListener()) { }
public Admin(EndpointDb endpointDb) : this(endpointDb, new HttpListener()) { }