Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }