public async Task CanGetConfig()
        {
            var expected = 23;
            await repository.UpdateConfigAsync(new ConfigInstance <SimpleConfig>(new SimpleConfig {
                IntProperty = expected
            }, configSetId));

            var localServer = new LocalConfigServerClient(repository, configSetId);
            var config      = await localServer.BuildConfigAsync <SimpleConfig>();

            Assert.Equal(expected, config.IntProperty);
        }
Ejemplo n.º 2
0
        public async Task CanGetConfig()
        {
            var expected = 23;
            await repository.UpdateConfigAsync(new ConfigInstance <SimpleConfig>(new SimpleConfig {
                IntProperty = expected
            }, configIdentity));

            var localServer = new LocalConfigServerClient(repository, clientservice.Object, registry.Object, new SingleClientIdProvider(clientId));
            var config      = await localServer.GetConfigAsync <SimpleConfig>();

            Assert.Equal(expected, config.IntProperty);
        }