Example #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);
        }
Example #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);
        }
Example #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);
            }
        }
Example #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);
            }
        }