示例#1
0
        public void Init()
        {
            _mockResponseHandler = MockRepository.GenerateStub <IExceptionResponseHandler>();
            _controller          = new HttpCallController(_mockResponseHandler);

            _mockProcessor = MockRepository.GenerateStub <IHttpCallProcessor>();
            _mockProcessor.Stub(s => s.Method).Return("TEST");
            _controller.RegisterCallProcessor(_mockProcessor);

            _mockWrapper = MockRepository.GenerateStub <INetworkStreamWrapper>();
        }
 public void Init()
 {
     _mockResponseHandler = MockRepository.GenerateStub <IExceptionResponseHandler>();
     _controller          = new HttpCallController(_mockResponseHandler);
 }