Exemple #1
0
        public IPactVerifier GetSubject()
        {
            _providerServiceValidatorFactoryCallInfo = null;
            _mockFileSystem = Substitute.For <IFileSystem>();
            _mockProviderServiceValidator = Substitute.For <IProviderServiceValidator>();

            return(new PactVerifier(_mockFileSystem, httpRequestSender =>
            {
                _providerServiceValidatorFactoryCallInfo = new Tuple <bool, IHttpRequestSender>(true, httpRequestSender);

                return _mockProviderServiceValidator;
            }));
        }
        public IPactVerifier GetSubject()
        {
            _providerServiceValidatorFactoryCallInfo = null;
            _mockFileSystem = Substitute.For<IFileSystem>();
            _mockProviderServiceValidator = Substitute.For<IProviderServiceValidator>();

            return new PactVerifier(_mockFileSystem, httpRequestSender =>
            {
                _providerServiceValidatorFactoryCallInfo = new Tuple<bool, IHttpRequestSender>(true, httpRequestSender);
                
                return _mockProviderServiceValidator;
            });
        }
        private IPactVerifier GetSubject()
        {
            _providerServiceValidatorFactoryCallInfo = null;
            _mockFileSystem = Substitute.For <IFileSystem>();
            _mockProviderServiceValidator = Substitute.For <IProviderServiceValidator>();
            _fakeHttpMessageHandler       = new FakeHttpMessageHandler();

            return(new PactVerifier(() => {}, () => {}, _mockFileSystem, (httpRequestSender, reporter, config) =>
            {
                _providerServiceValidatorFactoryCallInfo = new Tuple <bool, IHttpRequestSender>(true, httpRequestSender);

                return _mockProviderServiceValidator;
            }, new HttpClient(_fakeHttpMessageHandler), null));
        }
        private IPactVerifier GetSubject()
        {
            _providerServiceValidatorFactoryCallInfo = null;
            _mockFileSystem = Substitute.For<IFileSystem>();
            _mockProviderServiceValidator = Substitute.For<IProviderServiceValidator>();
            _fakeHttpMessageHandler = new FakeHttpMessageHandler();

            return new PactVerifier(() => {}, () => {}, _mockFileSystem, (httpRequestSender, reporter, config) =>
            {
                _providerServiceValidatorFactoryCallInfo = new Tuple<bool, IHttpRequestSender>(true, httpRequestSender);

                return _mockProviderServiceValidator;
            }, new HttpClient(_fakeHttpMessageHandler), null);
        }