예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
            }
        }
예제 #4
0
        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);
            }
        }