public virtual void Test1() { var tdm = new TestDownloadManager(); tdm.NewDownload("olivier", "*****@*****.**", "knowledger", "knowledger1.1"); tdm.NewDownload("olivier", "*****@*****.**", "knowledger", "knowledger1.1"); var odb = Open("download.ndb"); AssertEquals(2, odb.Query<Download>().Count()); AssertEquals(1, odb.Query<User>().Count()); odb.Close(); }
public virtual void Test1() { var tdm = new TestDownloadManager(); tdm.NewDownload("olivier", "*****@*****.**", "knowledger", "knowledger1.1"); tdm.NewDownload("olivier", "*****@*****.**", "knowledger", "knowledger1.1"); var odb = Open("download.ndb"); AssertEquals(2, odb.Query <Download>().Count()); AssertEquals(1, odb.Query <User>().Count()); odb.Close(); }
public virtual void Test2() { var tdm = new TestDownloadManager(); var size = 100; for (var i = 0; i < size; i++) { tdm.NewDownload("olivier", "*****@*****.**", "knowledger", "knowledger1.1"); tdm.NewDownload("olivier", "*****@*****.**", "knowledger", "knowledger1.1"); } var odb = Open("download.ndb"); AssertEquals(size * 2, odb.Query <Download>().Count()); AssertEquals(1, odb.Query <User>().Count()); odb.Close(); }
public virtual void Test2() { var tdm = new TestDownloadManager(); var size = 100; for (var i = 0; i < size; i++) { tdm.NewDownload("olivier", "*****@*****.**", "knowledger", "knowledger1.1"); tdm.NewDownload("olivier", "*****@*****.**", "knowledger", "knowledger1.1"); } var odb = Open("download.ndb"); AssertEquals(size * 2, odb.Query<Download>().Count()); AssertEquals(1, odb.Query<User>().Count()); odb.Close(); }