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); }
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(); }
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() }; }