public void SetUp()
        {
            _httpRequest = MockRepository.GenerateStub<HttpRequestBase>();
            _httpRequest.Stub(r => r.AppRelativeCurrentExecutionFilePath).Return("~/" + URL);
            _httpRequest.Stub(r => r.PathInfo).Return("");
            _httpRequest.Stub(r => r.Form).Return(_form);
            _httpRequest.Stub(r => r.Headers).Return(_headers);
            _httpRequest.Stub(r => r.QueryString).Return(_queryString);

            _httpContext = MockRepository.GenerateStub<HttpContextBase>();
            _httpContext.Stub(c => c.Request).Return(_httpRequest);

            var acceptHeaderResponseTypeResolver = MockRepository.GenerateStub<IAcceptHeaderResponseTypeResolver>();
            _route = new RestfulRoute(URL, CONTROLLER, new ResponseTypeMapper(acceptHeaderResponseTypeResolver), new ActionMapper());
        }
        public void SetUp()
        {
            _httpRequest = MockRepository.GenerateStub<HttpRequestBase>();
            _httpRequest.Stub(r => r.PathInfo).Return("");
            _httpRequest.Stub(r => r.HttpMethod).Return("Get");
            _httpRequest.Stub(r => r.Form).Return(_form);
            _httpRequest.Stub(r => r.Headers).Return(_headers);

            _httpContext = MockRepository.GenerateStub<HttpContextBase>();
            _httpContext.Stub(c => c.Request).Return(_httpRequest);

            _routeData = MockRepository.GenerateStub<RouteData>();

            _requestContext = MockRepository.GenerateStub<RequestContext>();
            _requestContext.RouteData = _routeData;
            _requestContext.HttpContext = _httpContext;

            _acceptHeaderResponseTypeResolver = MockRepository.GenerateStub<IAcceptHeaderResponseTypeResolver>();
            _route = new RestfulRoute(URL, CONTROLLER, new ResponseTypeMapper(_acceptHeaderResponseTypeResolver), new ActionMapper());
        }