public void GivenNullFactoryWhenSetClientFactoryCalledThenShouldThrowArgumentNull()
        {
            var target = new ClientHttpConfiguration();

            Assert.Throws <ArgumentNullException>(
                () => target.SetClientFactory(null));
        }
        public void GivenFactoryWhenSetClientFactoryCalledThenShouldSetFactory()
        {
            var target = new ClientHttpConfiguration();
            var client = new RemoteQueryClient(new HttpClient());

            target.SetClientFactory(() => client);
            var actual = target.ClientFactory();

            Assert.Same(client, actual);
        }