public void Setup()
 {
     actionMock = new DynamicMock(typeof(IAction));
     velocityViewGeneratorMock = new DynamicMock(typeof(IVelocityViewGenerator));
     exceptionCatchingAction   = new ExceptionCatchingActionProxy((IAction)actionMock.MockInstance, (IVelocityViewGenerator)velocityViewGeneratorMock.MockInstance);
     response      = new HtmlFragmentResponse("my view");
     errorResponse = new HtmlFragmentResponse("error view");
     request       = new NameValueCollectionRequest(null, null, null, null, null);
 }
 public void Setup()
 {
     actionMock = new Mock <IAction>();
     velocityViewGeneratorMock = new Mock <IVelocityViewGenerator>();
     exceptionCatchingAction   = new ExceptionCatchingActionProxy((IAction)actionMock.Object, (IVelocityViewGenerator)velocityViewGeneratorMock.Object);
     response      = new HtmlFragmentResponse("my view");
     errorResponse = new HtmlFragmentResponse("error view");
     request       = new NameValueCollectionRequest(null, null, null, null, null);
 }