public void SQLiteUpdateItemTest() { SqliteStorage storage = new SqliteStorage(); StorageModel model = new StorageModel() { Name = "name1", Value = "value1" }; string key = "Person/1"; storage.AddItem(key, model); model.Value = "value2"; storage.UpdateItem(key, model); StorageModel reust = storage.GetItem<StorageModel>(key); Assert.AreEqual(reust.Value, "value2"); }
public void SQLiteUpdateItemTest() { SqliteStorage storage = new SqliteStorage(); StorageModel model = new StorageModel() { Name = "name1", Value = "value1" }; string key = "Person/1"; storage.AddItem(key, model); model.Value = "value2"; storage.UpdateItem(key, model); StorageModel reust = storage.GetItem <StorageModel>(key); Assert.AreEqual(reust.Value, "value2"); }