Exemple #1
0
        public void SuccessfulRequestPutsFeatureDataInStore()
        {
            AllData allData = MakeAllData();

            _mockFeatureRequestor.Setup(fr => fr.GetAllDataAsync()).ReturnsAsync(allData);
            using (PollingProcessor pp = new PollingProcessor(_config, _featureRequestor, _featureStore))
            {
                var initTask = ((IUpdateProcessor)pp).Start();
                initTask.Wait();
                Assert.Equal(Flag, _featureStore.Get(VersionedDataKind.Features, Flag.Key));
                Assert.Equal(Segment, _featureStore.Get(VersionedDataKind.Segments, Segment.Key));
                Assert.True(_featureStore.Initialized());
            }
        }
        public void StoreNotInitializedByDefault()
        {
            StreamProcessor sp = CreateAndStartProcessor();

            Assert.False(_featureStore.Initialized());
        }