Exemplo n.º 1
0
        public void KeyValueDeleteBucket_Success()
        {
            IKeyValueStorage store = new FileKeyValueFileStorage(new EncryptionService(), AppSettingService.Instance);

            foreach (var item in store.GetBuckets())
            {
                store.DeleteBucket(item);
            }

            Assert.AreEqual(store.GetBuckets().Count, 0);
        }
Exemplo n.º 2
0
        public void KeyValueGetBucket_Success()
        {
            IKeyValueStorage store = new FileKeyValueFileStorage(new EncryptionService(), AppSettingService.Instance);

            store.Put <string>("test", "v11", "data");
            store.Put <string>("test1", "v11", "data");

            Assert.AreEqual(store.GetBuckets().Count, 2);
        }