public ConfigServerClientTest()
 {
     collection = new ConfigurationRegistry();
     collection.AddRegistration(ConfigurationRegistration.Build <SimpleConfig>());
     options                         = new ConfigServerClientOptions();
     options.ClientId                = "1234-5678-1234";
     options.ConfigServer            = "https://test.com/Config";
     options.CacheOptions.IsDisabled = true;
     clientWrapper                   = new Mock <IHttpClientWrapper>();
     cache  = new Mock <IMemoryCache>();
     target = new ConfigServerClient(clientWrapper.Object, cache.Object, collection, options);
 }
 /// <summary>
 /// CTOR
 /// </summary>
 /// <param name="clientCS">IConfigServerClient</param>
 public ConfigController(IConfigServerClient clientCS)
 {
     _clientCS = clientCS;
 }
Esempio n. 3
0
 public HomeController(IConfigServerClient configProvider)
 {
     this.configProvider = configProvider;
 }