private static void Initialize(HttpContextMock mock) { mock.ResponseMock.Setup(r => r.Redirect(It.IsAny <string>())).Throws <RedirectException>(); }