public void DeleteDeletesObjects() { var indexStore = new IndexStore("GetAndPut"); var fs = new FileDataStore("Deletez", indexStore); try { fs.PutObject(fit, 1); indexStore.IndexObject(fit, 1); fs.Delete(1); indexStore.RemoveObject(1); var actual = fs.GetObject <Car>(1); Assert.IsNull(actual); } finally { fs.DeleteDatabase(); } }
public override void Execute(FileDataStore fileStore) { fileStore.Delete(this.Id); }