public void GetHttpClientUsesCurrentHttpConfig()
        {
            clientProvider
            .CreateClient(Arg.Any <HTTPClientConfiguration>())
            .Returns(Substitute.For <HTTPClient>(new DefaultLogger(true), new HTTPClientConfiguration("", 0, "", null)));

            var target = new BeaconSendingContext(config, clientProvider, timingProvider);

            var actual = target.GetHTTPClient();

            clientProvider.Received(1).CreateClient(config.HTTPClientConfig);
        }
        public void CanGetHttpClient()
        {
            var expected = Substitute.For <HTTPClient>(new DefaultLogger(true), new HTTPClientConfiguration("", 0, "", null));

            clientProvider.CreateClient(Arg.Any <HTTPClientConfiguration>()).Returns(expected);

            var target = new BeaconSendingContext(config, clientProvider, timingProvider);

            var actual = target.GetHTTPClient();

            Assert.NotNull(actual);
            Assert.AreSame(expected, actual);
            clientProvider.Received(1).CreateClient(Arg.Any <HTTPClientConfiguration>());
        }