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); }
public ConfigServerClientTest() { collection = new ConfigurationRegistry(); collection.AddRegistration(ConfigurationRegistration.Build <SimpleConfig>()); collection.AddRegistration(ConfigurationRegistration.Build <SampleConfig>(configRegisration)); options = new ConfigServerClientOptions { ConfigServer = "https://test.com/Config" }; options.CacheOptions.IsDisabled = true; clientWrapper = new Mock <IHttpClientWrapper>(); target = new ConfigServerClient(clientWrapper.Object, new NoCachingStrategy(), new SingleClientIdProvider(clientId), collection, options); }