public void SQLiteGetItemsTest() { SqliteStorage storage = new SqliteStorage(); StorageModel model = new StorageModel() { Name = "name1", Value = "value1" }; string key1 = "Person1/1"; string key2 = "Person1/2"; string key3 = "Person1/3"; storage.AddItem(key1, model); storage.AddItem(key2, model); storage.AddItem(key3, model); List<StorageModel> models = storage.GetItems<StorageModel>("Person1/0"); Assert.AreEqual(models.Count, 3); storage.FlushAll(); }
public void SQLiteGetItemsTest() { SqliteStorage storage = new SqliteStorage(); StorageModel model = new StorageModel() { Name = "name1", Value = "value1" }; string key1 = "Person1/1"; string key2 = "Person1/2"; string key3 = "Person1/3"; storage.AddItem(key1, model); storage.AddItem(key2, model); storage.AddItem(key3, model); List <StorageModel> models = storage.GetItems <StorageModel>("Person1/0"); Assert.AreEqual(models.Count, 3); storage.FlushAll(); }