Exemplo n.º 1
0
        protected void beforeEach()
        {
            environment = new Dictionary <string, object>();
            environment.Add(OwinConstants.ResponseBodyKey, new MemoryStream());

            writer = new OwinHttpWriter(environment);
        }
Exemplo n.º 2
0
        public Task Invoke(IDictionary <string, object> environment)
        {
            var writer = new OwinHttpWriter(environment);

            writer.AppendHeader("Slow-Moving", "Laser");

            return(_inner(environment));
        }
Exemplo n.º 3
0
        public Task Invoke(IDictionary <string, object> environment)
        {
            var writer = new OwinHttpWriter(environment);

            writer.AppendHeader("James", "Bond");

            return(_inner(environment));
        }
Exemplo n.º 4
0
 protected void beforeEach()
 {
     response = new Response(null);
     writer = new OwinHttpWriter(response);
 }
Exemplo n.º 5
0
 protected void beforeEach()
 {
     response = new Response(null);
     writer   = new OwinHttpWriter(response);
 }
Exemplo n.º 6
0
 protected void beforeEach()
 {
     environment = new Dictionary <string, object>();
     writer      = new OwinHttpWriter(environment);
 }
Exemplo n.º 7
0
 public void SetUp()
 {
     theRequest    = new OwinCurrentHttpRequest();
     theWriter     = new OwinHttpWriter(theRequest.Environment);
     theMiddleware = new StaticFileMiddleware(null, theFiles, new OwinSettings());
 }