public void SetUp()
 {
     _rpcConfiguration = MockRepository.GenerateStub<IRpcConfiguration>();
     _parametersParser = MockRepository.GenerateStub<ParametersParser>();
     _methodInvoker = MockRepository.GenerateStub<MethodInvoker>();
     _rpcHandlerInterceptor = MockRepository.GenerateStub<RpcHandlerInterceptor>();
     _target = new JsonRpcHandler(_parametersParser, _rpcConfiguration, _methodInvoker, _rpcHandlerInterceptor);
 }
 public static void SetInterceptor(RpcHandlerInterceptor interceptor)
 {
     _rpcHandlerInterceptor = interceptor;
 }