public ConfigurationProxy(IHttpClient client = null, string baseListenerUrl = null)
 {
     _client = client ?? new HttpClient();
     if (string.IsNullOrEmpty(baseListenerUrl))
     {
         _baseUrl = new DefaultConfigurationProvider().BaseListenerUrl.ToString();
     }
     else
     {
         _baseUrl = baseListenerUrl;
     }
 }
 public void given_a_url_is_not_provided_on_construction()
 {
     var target = new ConfigurationProxy();
     context["when i retrieve the listener and configuration url from the configurationProxy instance"] = () =>
         {
             var configUrl = target.ConfigurationUrl;
             var listenerUrl = target.ListenerUrl;
             var defaultProvider = new DefaultConfigurationProvider();
             var defaultConfigUrl = defaultProvider.ConfigurationUrl.ToString();
             var defaultListenerUrl = defaultProvider.TfsListenerUrl.ToString();
             it["then the default url is returned"] = () =>
                 {
                     configUrl.should_be(defaultConfigUrl);
                     listenerUrl.should_be(defaultListenerUrl);
                 };
         };
 }