Пример #1
0
        public void TestAutoClose()
        {
            int index;

            for (index = 0; index < 2000; index++)
            {
                using (var context = new testEntities())
                {
                    var handler = context.HOCKEY.FirstOrDefault();
                }
            }
            Assert.AreEqual(2000, index);
        }
Пример #2
0
 public LINQTestFixture()
 {
     context = new testEntities();
 }
Пример #3
0
 public LINQTestFixture()
 {
     context = new testEntities();
 }
Пример #4
0
 public void TestAutoClose()
 {
     int index;
     for (index = 0; index < 2000; index++)
     {
         using (var context = new testEntities())
         {
             var handler = context.HOCKEY.FirstOrDefault();
         }
     }
     Assert.AreEqual(2000, index);
 }