public DebugFilterAttributeFacts() { _mocks = new MockRepository(); _mockHttpContext = _mocks.StrictMock<HttpContextBase>(); _mockRequest = _mocks.StrictMock<HttpRequestBase>(); _mockResponse = _mocks.StrictMock<HttpResponseBase>(); _mockFilterContext = _mocks.StrictMock<ActionExecutedContext>(); _filter = new DebugFilterAttribute(); _mocks.ReplayAll(); _mockFilterContext.Expect(fc => fc.HttpContext).Return(_mockHttpContext); _mockHttpContext.Expect(hc => hc.Request).Return(_mockRequest); }