Esempio n. 1
0
 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();
 }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
        public static void Main2(string[] args)
        {
            var td = new TestDownloadManager();

            for (var i = 0; i < 2000; i++)
            {
                td.SetUp();
                td.Test1();
                td.TearDown();
                td.Test1();
            }
        }
Esempio n. 4
0
        public static void Main2(string[] args)
        {
            var td = new TestDownloadManager();

            for (var i = 0; i < 2000; i++)
            {
                td.SetUp();
                td.Test1();
                td.TearDown();
                td.Test1();
            }
        }
Esempio n. 5
0
        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();
        }
Esempio n. 6
0
 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();
 }