public override void SetUp() { base.SetUp(); DeleteBase("cyclic.ndb"); var odb = Open("cyclic.ndb"); for (var i = 0; i < 1; i++) { var brasilia = new City("Brasilia" + i); var brasil = new Country2("Brasil" + i); brasilia.SetCountry(brasil); brasil.SetCapital(brasilia); brasil.SetPopulation(450000); odb.Store(brasil); } odb.Store(new User("name", "email", new Profile("profile"))); odb.Close(); }
/// <exception cref="System.Exception"></exception> public override void SetUp() { base.SetUp(); DeleteBase("cyclic.neodatis"); NeoDatis.Odb.ODB odb = Open("cyclic.neodatis"); for (int i = 0; i < 1; i++) { City brasilia = new City ("Brasilia" + i); Country2 brasil = new Country2 ("Brasil" + i); brasilia.SetCountry(brasil); brasil.SetCapital(brasilia); brasil.SetPopulation(450000); odb.Store(brasil); } odb.Store(new User("name", "email", new Profile("profile"))); odb.Close(); }