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); }
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.GetConfigAsync <SimpleConfig>(); Assert.Equal(expected, config.IntProperty); }