public void SetUp()
        {
            _restfulResultFactory = MockRepository.GenerateStub<IRestfulResultFactory>();

            _container = MockRepository.GenerateStub<IContainer>();
            _responseUpdater = MockRepository.GenerateStub<IResponseUpdater>();
            _locationProviderFactory = MockRepository.GenerateStub<ILocationProviderFactory>();
            _typedResultFactory = new TypedResultFactory(_restfulResultFactory, _container, _locationProviderFactory);

            _routeData = new RouteData();
            _routeData.Values.Add("responseType", Core.Routes.ResponseType.Xml);

            _controllerContext = MockRepository.GenerateStub<ControllerContext>();
            _controllerContext.RouteData = _routeData;
        }
 public TypedResultFactory(IRestfulResultFactory restfulResultFactory, IContainer container, ILocationProviderFactory locationProviderFactory)
 {
     _container = container;
     _locationProviderFactory = locationProviderFactory;
     _restfulResultFactory = restfulResultFactory;
 }