/// <exception cref="System.Exception"></exception> public virtual void TestInsert() { DeleteBase("tinterfaces.neodatis"); NeoDatis.Odb.ODB odb = Open("tinterfaces.neodatis"); ObjectWithInterfaces owi = new ObjectWithInterfaces("Ol√° chico"); odb.Store(owi); odb.Commit(); odb.Close(); }
/// <exception cref="System.Exception"></exception> public virtual void TestInsertAndSelect() { DeleteBase("tinterfaces.neodatis"); NeoDatis.Odb.ODB odb = Open("tinterfaces.neodatis"); ObjectWithInterfaces owi = new ObjectWithInterfaces("Ol√° chico"); odb.Store(owi); odb.Close(); odb = Open("tinterfaces.neodatis"); NeoDatis.Odb.Objects<ObjectWithInterfaces> os = odb.GetObjects<ObjectWithInterfaces>(); AssertEquals(1, os.Count); odb.Close(); }