Esempio n. 1
0
        private IQuery CreateSODA(COR57TestCase.Base template)
        {
            IQuery q = NewQuery(template.GetType());

            q.Descend("name").Constrain(template.name);
            return(q);
        }
Esempio n. 2
0
 private void AssertQueryResult(int expectedCount, COR57TestCase.Base expectedTemplate
                                , IObjectSet result)
 {
     Assert.AreEqual(expectedCount, result.Count, SimpleName(expectedTemplate.GetType(
                                                                 )));
     while (result.HasNext())
     {
         COR57TestCase.Base actual = (COR57TestCase.Base)result.Next();
         Assert.AreEqual(expectedTemplate.name, actual.name);
         Assert.IsInstanceOf(expectedTemplate.GetType(), actual);
     }
 }
Esempio n. 3
0
 private void AssertSODA(int expectedCount, COR57TestCase.Base template)
 {
     AssertQueryResult(expectedCount, template, CreateSODA(template).Execute());
 }
Esempio n. 4
0
 private void AssertQBE(int expectedCount, COR57TestCase.Base template)
 {
     AssertQueryResult(expectedCount, template, Db().QueryByExample(template));
 }