public PersistentDataStoreWrapperTest(ITestOutputHelper testOutput) : base(testOutput)
 {
     _persistentStore = new MockPersistentDataStore();
     _wrapper         = new PersistentDataStoreWrapper(
         _persistentStore,
         BasicMobileKey,
         testLogger
         );
 }
예제 #2
0
        public FlagDataManager(
            string mobileKey,
            PersistenceConfiguration persistenceConfiguration,
            Logger log
            )
        {
            _log = log;

            if (persistenceConfiguration is null || persistenceConfiguration.MaxCachedUsers == 0 ||
                persistenceConfiguration.PersistentDataStore is NullPersistentDataStore)
            {
                _persistentStore = null;
                _maxCachedUsers  = 0;
            }