public BillingConnectorResponse Ping(PingRequest request)
        {
            log.InfoFormat("Pinging the billing API at {0} with segment {1}", configuration.Url, urlBuilder.PingSegment());

            var response = PostApi(urlBuilder.PingSegment(), new RestRequest(urlBuilder.PingSegment()));

            log.InfoFormat("Pinging the billing API at {0} completed. The response was {1}", configuration.Url, response);

            return response;
        }
        public when_pinging_the_billing_api_and_the_url_is_not_found()
        {
            client = new Mock<IRestClient>();
            client.Setup(c => c.Execute(It.IsAny<IRestRequest>())).Returns(new RestResponse()
            {
                StatusCode = HttpStatusCode.NotFound
            });

            connector = new DefaultBillingConnector(new TestBillingConnectorConfiguration(), client.Object);
            request = new PingRequest(new SystemIdentifier("TEST"));
        }
 public BillingConnectorResponse Ping(PingRequest request)
 {
     throw new System.NotImplementedException();
 }