Exemplo n.º 1
0
 public FakeHttpRequest(FakeHttpContext context)
 {
     this.fakeHttpContext = context;
     this.IsHttps         = false;
     this.Scheme          = "http";
     this.Host            = new HostString("localhost");
     this.PathBase        = new PathString("");
     this.Path            = new PathString("/api/fake");
     this.Query           = new ReadableStringCollection(queryStrings);
 }
Exemplo n.º 2
0
 public FakeHttpRequest(FakeHttpContext context)
 {
     this.fakeHttpContext = context;
     this.IsHttps = false;
     this.Scheme = "http";
     this.Host = new HostString("localhost");
     this.PathBase = new PathString("");
     this.Path = new PathString("/api/fake");
     this.Query = new ReadableStringCollection(queryStrings);
     this.Body = new MemoryStream();
 }
Exemplo n.º 3
0
        public FilterContextBuilder()
        {
            actionArguments = new Dictionary<string, object>();
            fakeHttpContext = new FakeHttpContext();

            this.actionContext = new ActionContext()
            {
                HttpContext = fakeHttpContext,
                RouteData = new Microsoft.AspNet.Routing.RouteData(),
                ActionDescriptor = new Microsoft.AspNet.Mvc.Abstractions.ActionDescriptor()
            };
        }