public async Task ContainedInWithId() { var obj1 = new CB.CloudObject("Custom1"); obj1.Set("newColumn", "sample"); obj1.Set("description", "sample2"); await obj1.SaveAsync(); var obj2 = new CB.CloudObject("Custom1"); obj2.Set("newColumn", "sample"); obj2.Set("description", "sample2"); await obj2.SaveAsync(); var obj3 = new CB.CloudObject("Custom1"); obj3.Set("newColumn", "sample"); obj3.Set("description", "sample2"); await obj3.SaveAsync(); var query = new CB.CloudQuery("Custom1"); ArrayList list = new ArrayList(); list.Add(obj1.ID); list.Add(obj2.ID); list.Add(obj3.ID); query.ContainedIn("id", list); var response = (ArrayList)await query.FindAsync(); Assert.IsTrue(true); }
public async Task containedInWithId() { var obj1 = new CB.CloudObject("Custom1"); obj1.Set("newColumn", "sample"); obj1.Set("description", "sample2"); await obj1.SaveAsync(); var obj2 = new CB.CloudObject("Custom1"); obj2.Set("newColumn", "sample"); obj2.Set("description", "sample2"); await obj2.SaveAsync(); var obj3 = new CB.CloudObject("Custom1"); obj3.Set("newColumn", "sample"); obj3.Set("description", "sample2"); await obj3.SaveAsync(); var query = new CB.CloudQuery("Custom1"); List <CB.CloudObject> list = new List <CB.CloudObject>(); list.Add(obj1); list.Add(obj2); list.Add(obj3); query.ContainedIn("id", list); query.SelectColumn("newColumn"); var response = (List <CB.CloudObject>) await query.FindAsync(); if (response.Count == 2) { Assert.IsTrue(true); } Assert.IsFalse(true); }