Ejemplo n.º 1
0
        public void TestMethod2()
        {
            EFLab.DAL.DAL dal = new EFLab.DAL.DAL();

            IList<TypeASecondLevelObject> typeASecondObjs = dal.GetSecondLevelObject<TypeASecondLevelObject>(1, new string[] { "TypeAObject1s" });
            Assert.AreEqual(1, typeASecondObjs.Count());
            Assert.AreEqual(1, typeASecondObjs[0].TypeAObject1s.Count());

            IList<TypeBSecondLevelObject> typeBSecondObjs = dal.GetSecondLevelObject<TypeBSecondLevelObject>(1, new string[] { "TypeBObject1s" });
            Assert.AreEqual(1, typeBSecondObjs.Count());
            Assert.AreEqual(1, typeBSecondObjs[0].TypeBObject1s.Count());

            IList<SecondLevelObjectBase> secondObjs = dal.GetSecondLevelObject(1);
            Assert.AreEqual(3, secondObjs.Count());

            //Assert.AreEqual(1, dal.GetSecondLevelObject(1, CustomType.TypeA).Count());
            //Assert.AreEqual(1, dal.GetSecondLevelObject(1, CustomType.TypeB).Count());
            //Assert.AreEqual(1, dal.GetSecondLevelObject(1, CustomType.TypeC).Count());

            Assert.AreEqual(3, dal.GetSecondLevelObject().Count());
        }
Ejemplo n.º 2
0
 public void TestDelete()
 {
     EFLab.DAL.DAL dal = new EFLab.DAL.DAL();
     dal.DeleteSecondLevelObject(1);
 }
Ejemplo n.º 3
0
        public void OutputDbSets()
        {
            EFLab.DAL.DAL dal = new EFLab.DAL.DAL();
            List<PropertyInfo> info = dal.GetDbSetProperties();

            foreach (PropertyInfo pi in info)
            {
                Debug.WriteLine(pi);
            }
        }
Ejemplo n.º 4
0
 public void TestGetSecondLevelObject3()
 {
     EFLab.DAL.DAL dal = new EFLab.DAL.DAL();
     IList<TypeASecondLevelObject> objs = dal.GetSecondLevelObject3<TypeASecondLevelObject>(1);
 }
Ejemplo n.º 5
0
 public void TestGetSecondLevelObject2()
 {
     EFLab.DAL.DAL dal = new EFLab.DAL.DAL();
     IList<EFLab.DAL.BizObjects.SecondLevelObjectBase> objs = dal.GetSecondLevelObject2(1);
 }
Ejemplo n.º 6
0
 public void TestGetTypeAObject1()
 {
     EFLab.DAL.DAL dal = new EFLab.DAL.DAL();
     dal.GetTypeAObject1();
 }