コード例 #1
0
        public void GivenAFeefoClientWithAFakeClientHandler()
        {
            var baseUri       = "http://example.kevsoft.net/feefo.jsp";
            var feefoSettings = new FeefoSettings(new Uri(baseUri), "www.examplesupplier.com");

            _httpMessageHandler = new StubHttpMessageHandler(
                new Uri(baseUri),
                new ResourceHelper().GetStringResource("Feefo.Tests.FeefoRssFeed.json"));
            _client = new FeefoClient(_httpMessageHandler, Mock.Of <IQueryStringFactory>(), feefoSettings);
        }
コード例 #2
0
        public void GivenAFeefoClientWithAFakeClientHandler()
        {
            var baseUri = "http://example.kevsoft.net/feefo.jsp";
            var feefoSettings = new FeefoSettings(new Uri(baseUri), "www.examplesupplier.com");

            _httpMessageHandler = new StubHttpMessageHandler(
                new Uri(baseUri),
                new ResourceHelper().GetStringResource("Feefo.Tests.FeefoRssFeed.json"));
            _client = new FeefoClient(_httpMessageHandler, Mock.Of<IQueryStringFactory>(), feefoSettings);
        }
コード例 #3
0
        public void GivenAFeefoClientWithAnExampleSupplier()
        {
            var feefoSettings = new FeefoSettings("www.examplesupplier.com");

            _client = new FeefoClient(feefoSettings);
        }