/// <exception cref="System.Exception"></exception> public static void Main2(string[] args) { NeoDatis.Odb.Test.Other.TestDownloadManager td = new NeoDatis.Odb.Test.Other.TestDownloadManager (); for (int i = 0; i < 2000; i++) { td.SetUp(); td.Test1(); td.TearDown(); td.Test1(); } }
/// <exception cref="System.Exception"></exception> public virtual void Test1() { NeoDatis.Odb.Test.Other.TestDownloadManager tdm = new NeoDatis.Odb.Test.Other.TestDownloadManager (); tdm.NewDownload("olivier", "*****@*****.**", "knowledger", "knowledger1.1"); tdm.NewDownload("olivier", "*****@*****.**", "knowledger", "knowledger1.1"); NeoDatis.Odb.ODB odb = Open("download.neodatis"); AssertEquals(2, odb.Count(new CriteriaQuery (typeof(NeoDatis.Odb.Test.VO.Download.Download)))); AssertEquals(1, odb.Count(new CriteriaQuery (typeof(User)))); odb.Close(); }
/// <exception cref="System.Exception"></exception> public virtual void Test1() { NeoDatis.Odb.Test.Other.TestDownloadManager tdm = new NeoDatis.Odb.Test.Other.TestDownloadManager (); tdm.NewDownload("olivier", "*****@*****.**", "knowledger", "knowledger1.1"); tdm.NewDownload("olivier", "*****@*****.**", "knowledger", "knowledger1.1"); NeoDatis.Odb.ODB odb = Open("download.neodatis"); AssertEquals(2, odb.Count(new CriteriaQuery (typeof(NeoDatis.Odb.Test.VO.Download.Download)))); AssertEquals(1, odb.Count(new CriteriaQuery (typeof(User)))); odb.Close(); }
/// <exception cref="System.Exception"></exception> public virtual void Test2() { NeoDatis.Odb.Test.Other.TestDownloadManager tdm = new NeoDatis.Odb.Test.Other.TestDownloadManager (); int size = (isLocal ? 1000 : 50); for (int i = 0; i < size; i++) { tdm.NewDownload("olivier", "*****@*****.**", "knowledger", "knowledger1.1"); tdm.NewDownload("olivier", "*****@*****.**", "knowledger", "knowledger1.1"); } NeoDatis.Odb.ODB odb = Open("download.neodatis"); AssertEquals(size * 2, odb.Count(new CriteriaQuery (typeof(NeoDatis.Odb.Test.VO.Download.Download)))); AssertEquals(1, odb.Count(new CriteriaQuery (typeof(User)))); odb.Close(); }
/// <exception cref="System.Exception"></exception> public virtual void Test2() { NeoDatis.Odb.Test.Other.TestDownloadManager tdm = new NeoDatis.Odb.Test.Other.TestDownloadManager (); int size = (isLocal ? 1000 : 50); for (int i = 0; i < size; i++) { tdm.NewDownload("olivier", "*****@*****.**", "knowledger", "knowledger1.1"); tdm.NewDownload("olivier", "*****@*****.**", "knowledger", "knowledger1.1"); } NeoDatis.Odb.ODB odb = Open("download.neodatis"); AssertEquals(size * 2, odb.Count(new CriteriaQuery (typeof(NeoDatis.Odb.Test.VO.Download.Download)))); AssertEquals(1, odb.Count(new CriteriaQuery (typeof(User)))); odb.Close(); }
/// <exception cref="System.Exception"></exception> public static void Main2(string[] args) { NeoDatis.Odb.Test.Other.TestDownloadManager td = new NeoDatis.Odb.Test.Other.TestDownloadManager (); for (int i = 0; i < 2000; i++) { td.SetUp(); td.Test1(); td.TearDown(); td.Test1(); } }