예제 #1
0
        public async Task MultiGetObjectAsyncTest()
        {
            // Create new object
            var obj1 = await ObjectHelper.CreateNewAsync();

            var obj2 = await ObjectHelper.CreateNewAsync();

            // Get the created objects
            var enumerable = await APObjects.MultiGetAsync("object", new[] { obj1.Id, obj2.Id });

            // Asserts
            Assert.IsNotNull(enumerable);
            var list = enumerable.Select(x => x.Id);

            Assert.IsTrue(list.Intersect(new[] { obj1.Id, obj2.Id }).Count() == 2);
        }