public void Setup() { _format = new MultiMimeFormat(); _httpContext = new Mock<HttpContextBase>(); _httpRequest = new Mock<HttpRequestBase>(); _httpContext.Setup(c => c.Request).Returns(_httpRequest.Object); var requestContext = new RequestContext { HttpContext = _httpContext.Object }; _controllerContext = new ControllerContext { RequestContext = requestContext }; }
public MultiMimeResult(MultiMimeFormat format) { Format = format; }
public MultiMimeResult(Action<MultiMimeFormat> format) { Format = new MultiMimeFormat(format); }
public void Setup() { _format = new MultiMimeFormat(); }