public void SetupTest() { Mock<HttpResponseBase> response = new Mock<HttpResponseBase>(); response.Setup(x => x.Cache).Returns(new Mock<HttpCachePolicyBase>().Object); m_httpContext = MockHelpers.HttpContext(""); m_httpContext.WithUser(MockHelpers.User().WithIdentity(MockHelpers.Identity().WithAuthenticationStatus(false))); m_httpContext.Setup(x => x.Response).Returns(response.Object); m_context.HttpContext = m_httpContext.Object; }