Ejemplo n.º 1
0
        public NancyContext Create(Request request)
        {
            var nancyContext = new NancyContext
            {
                Request = request,
                Trace   = _requestTraceFactory.Create(request)
            };

            nancyContext.Culture = _cultureService.DetermineCurrentCulture(nancyContext);
            nancyContext.Text    = new TextResourceFinder(_textResource, nancyContext);

            nancyContext.SetMockInteraction(_mockContextService.GetExpectedRequestResponsePairs());

            return(nancyContext);
        }