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"); }
public RequestControllerTest() { _controller = new MyController(); _request = new HttpTestRequest {HttpVersion = "HTTP/1.1"}; _stream = new MyStream(); _context = new HttpResponseContext(); _response = _request.CreateResponse(_context); }