public virtual void TestPredefinedPrototype() { StoreAll(OccamAndZora()); BasicQLinTestCase.Cat cat = ((BasicQLinTestCase.Cat)QLinSupport.Prototype(typeof( BasicQLinTestCase.Cat))); IteratorAssert.SameContent(Occam(), Db().From(typeof(BasicQLinTestCase.Cat)).Where (cat.Name()).StartsWith("Occ").Select()); }
public virtual void ClosureSample() { // List<Cat> occamAndZora = occamAndZora(); BasicQLinTestCase.Cat cat = ((BasicQLinTestCase.Cat)QLinSupport.Prototype(typeof( BasicQLinTestCase.Cat))); IList cats = ListOf(new BasicQLinTestCase.Cat[] { new BasicQLinTestCase.Cat("Zora" ), new BasicQLinTestCase.Cat("Wolke") }); With(cats, new _Closure_31(cat)); }
public virtual void TestQueryingByInterface() { StoreAll(OccamAndIsetta()); BasicQLinTestCase.Dog dog = ((BasicQLinTestCase.Dog)QLinSupport.Prototype(typeof( BasicQLinTestCase.Dog))); BasicQLinTestCase.Cat cat = ((BasicQLinTestCase.Cat)QLinSupport.Prototype(typeof( BasicQLinTestCase.Cat))); AssertQuery(Isetta(), dog, "Isetta"); AssertQuery(Occam(), cat, "Occam"); }
public virtual void TestQueryingByInterface() { StoreAll(OccamAndIsetta()); var dog = ((Dog)QLinSupport.Prototype(typeof( Dog))); var cat = ((Cat)QLinSupport.Prototype(typeof( Cat))); AssertQuery(Isetta(), dog, "Isetta"); AssertQuery(Occam(), cat, "Occam"); }
// IteratorAssert.sameContent(occam(), // db().from(Cat.class) // .where(cat.name().equals("Occam")) // .select()); public virtual void TestUpdate() { StoreAll(OccamZoraAchatAcrobat()); var newAge = 2; var cat = ((Cat)QLinSupport.Prototype(typeof( Cat))); // db().from(Cat.class) // .where(cat.father()).equal("Occam") // .update(cat.age(newAge)); var updated = Db().From(typeof(Cat)).Where(cat.Name()).Equal ("Occam").Select(); var i = updated.GetEnumerator(); }
public virtual void ClosureSample() { // List<Cat> occamAndZora = occamAndZora(); var cat = ((Cat)QLinSupport.Prototype(typeof( Cat))); var cats = ListOf(new[] { new Cat("Zora" ), new Cat("Wolke") }); With(cats, new _Closure_31(cat)); }
// while(i.hasNext()){ // Assert.areEqual(newAge, i.next().age()); // } public virtual void TestExecute() { StoreAll(OccamZoraAchatAcrobat()); BasicQLinTestCase.Cat cat = ((BasicQLinTestCase.Cat)QLinSupport.Prototype(typeof( BasicQLinTestCase.Cat))); }
public virtual void TestWhereAsNativeQuery() { StoreAll(OccamAndZora()); BasicQLinTestCase.Cat cat = ((BasicQLinTestCase.Cat)QLinSupport.Prototype(typeof( BasicQLinTestCase.Cat))); }
// while(i.hasNext()){ // Assert.areEqual(newAge, i.next().age()); // } public virtual void TestExecute() { StoreAll(OccamZoraAchatAcrobat()); var cat = ((Cat)QLinSupport.Prototype(typeof( Cat))); }
public virtual void TestWhereAsNativeQuery() { StoreAll(OccamAndZora()); var cat = ((Cat)QLinSupport.Prototype(typeof( Cat))); }