public void GetAllWarriors2() { IOdb odb = OdbFactory.Open(DbName); try { var result = odb.QueryAndExecute <Warrior>(); Assert.That(result.Count, Is.EqualTo(2)); PrintResult(result); } finally { odb.Close(); } }