public void InitPassesDataToStore() { var initData = new DataSetBuilder().Add("key1", new FeatureFlagBuilder().Build()).Build(); _updateSink.Init(_basicUser, initData); Assert.Equal(initData.Items, _store.GetAll().Value.Items); }
/// <inheritdoc/> public IDictionary <string, LdValue> AllFlags() { var data = _dataStore.GetAll(); if (data is null) { return(ImmutableDictionary <string, LdValue> .Empty); } return(data.Value.Items.Where(entry => entry.Value.Item != null) .ToDictionary(p => p.Key, p => p.Value.Item.Value)); }