Exemplo n.º 1
0
 public virtual void Test3()
 {
     var odb = Open(DbName);
     var size = odb.Query<Dictionnary>().Count();
     var dictionnary1 = new Dictionnary("test1");
     dictionnary1.SetMap(null);
     odb.Store(dictionnary1);
     odb.Close();
     odb = Open(DbName);
     var query = odb.Query<Dictionnary>();
     AssertEquals(size + 1, query.Execute<Dictionnary>().Count);
     AssertEquals(size + 1, odb.Query<Dictionnary>().Count());
     odb.Close();
 }
Exemplo n.º 2
0
        public override void SetUp()
        {
            DeleteBase(DbName);
            var odb = Open(DbName);
            var dictionnary1 = new Dictionnary("test1");
            dictionnary1.AddEntry("olivier", "Smadja");
            dictionnary1.AddEntry("kiko", "vidal");
            dictionnary1.AddEntry("karine", "galvao");

            var dictionnary2 = new Dictionnary("test2");
            dictionnary2.AddEntry("f1", new VO.Login.Function("function1"));
            dictionnary2.AddEntry("f2", new VO.Login.Function("function2"));
            dictionnary2.AddEntry("f3", new VO.Login.Function("function3"));
            dictionnary2.AddEntry(dictionnary1, new VO.Login.Function("function4"));
            dictionnary2.AddEntry("f4", null);

            odb.Store(dictionnary1);
            odb.Store(dictionnary2);

            odb.Store(new VO.Login.Function("login"));
            odb.Close();
        }