public static void TestStorageManager_PurgeAsset_Unknown_DoesntRemoveKnown() { LOG.Info($"Executing {nameof(TestStorageManager_PurgeAsset_Unknown_DoesntRemoveKnown)}"); var mgr = new StorageManager( _readerLocalStorage, TimeSpan.FromMinutes(2), _chattelReader, _chattelWriter ); var asset = new StratusAsset { Id = Guid.NewGuid(), }; var wait = new AutoResetEvent(false); mgr.StoreAsset(asset, result => wait.Set()); wait.WaitOne(); wait.Reset(); mgr.PurgeAsset(Guid.NewGuid(), result => wait.Set()); wait.WaitOne(); wait.Reset(); Assert.True(_readerLocalStorage.AssetOnDisk(asset.Id)); }
public static void TestAssetLocalStorageLmdbPartitionedLRU_AssetOnDisk_Unknown_False() { Assert.False(_localStorageLmdb.AssetOnDisk(Guid.NewGuid())); }