Exemple #1
0
		/// <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();
		}
Exemple #2
0
 /// <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();
 }
Exemple #3
0
		/// <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();
		}
Exemple #4
0
        /// <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();
        }