public async Task DeleteAll() { List <World> list = new List <World> { new World(), new World(), new World(), new World(), }; await LCObject.SaveAll(list); await LCObject.DeleteAll(list); }
public async Task DeleteAll() { List <LCObject> list = new List <LCObject> { new LCObject("World"), new LCObject("World"), new LCObject("World"), new LCObject("World") }; await LCObject.SaveAll(list); await LCObject.DeleteAll(list); }
public async Task SaveAll() { List <LCObject> list = new List <LCObject>(); for (int i = 0; i < 5; i++) { LCObject world = new LCObject("World"); world["content"] = $"word_{i}"; list.Add(world); } await LCObject.SaveAll(list); foreach (LCObject obj in list) { Assert.NotNull(obj.ObjectId); } }
public async Task SaveAll() { List <LCObject> list = new List <LCObject>(); for (int i = 0; i < 5; i++) { World world = new World { Content = $"word_{i}" }; list.Add(world); } await LCObject.SaveAll(list); foreach (LCObject obj in list) { Assert.NotNull(obj.ObjectId); } }