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()); }
public void TestDelete() { EFLab.DAL.DAL dal = new EFLab.DAL.DAL(); dal.DeleteSecondLevelObject(1); }
public void OutputDbSets() { EFLab.DAL.DAL dal = new EFLab.DAL.DAL(); List<PropertyInfo> info = dal.GetDbSetProperties(); foreach (PropertyInfo pi in info) { Debug.WriteLine(pi); } }
public void TestGetSecondLevelObject3() { EFLab.DAL.DAL dal = new EFLab.DAL.DAL(); IList<TypeASecondLevelObject> objs = dal.GetSecondLevelObject3<TypeASecondLevelObject>(1); }
public void TestGetSecondLevelObject2() { EFLab.DAL.DAL dal = new EFLab.DAL.DAL(); IList<EFLab.DAL.BizObjects.SecondLevelObjectBase> objs = dal.GetSecondLevelObject2(1); }
public void TestGetTypeAObject1() { EFLab.DAL.DAL dal = new EFLab.DAL.DAL(); dal.GetTypeAObject1(); }