示例#1
0
 public FileModuleTest()
 {
     _request = new HttpTestRequest {HttpVersion = "HTTP/1.1"};
 	_context = new HttpResponseContext();
 	_response = _request.CreateResponse(_context);
     _module = new FileModule("/files/", Environment.CurrentDirectory);
     _module.MimeTypes.Add("txt", "text/plain");
 }
示例#2
0
 public RequestControllerTest()
 {
     _controller = new MyController();
     _request = new HttpTestRequest {HttpVersion = "HTTP/1.1"};
 	_stream = new MyStream();
     _context = new HttpResponseContext();
     _response = _request.CreateResponse(_context);
 }