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());
 }
Exemple #2
0
        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");
 }
Exemple #4
0
        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");
        }
Exemple #5
0
 //		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();
 }
Exemple #6
0
        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)));
 }
Exemple #9
0
 //		while(i.hasNext()){
 //			Assert.areEqual(newAge, i.next().age());
 //		}
 public virtual void TestExecute()
 {
     StoreAll(OccamZoraAchatAcrobat());
     var cat = ((Cat)QLinSupport.Prototype(typeof(
                                               Cat)));
 }
Exemple #10
0
 public virtual void TestWhereAsNativeQuery()
 {
     StoreAll(OccamAndZora());
     var cat = ((Cat)QLinSupport.Prototype(typeof(
                                               Cat)));
 }