Beispiel #1
0
        public void GetAllAcademicPlansTest()
        {
            AcademicPlanRepository rep   = new AcademicPlanRepository();
            List <AcademicPlan>    plans = rep.Read();

            Assert.IsNotNull(plans);
        }
Beispiel #2
0
        public void GetAcademPlanById()
        {
            AcademicPlanRepository academicPlan = new AcademicPlanRepository();
            AcademicPlan           plan         = academicPlan.Read(12);

            Assert.IsNotNull(plan);
        }
Beispiel #3
0
        public void UpdateAcademPlanTest()
        {
            AcademicPlanRepository rep  = new AcademicPlanRepository();
            AcademicPlan           plan = rep.Read(22);

            plan.SpecialityId = 2;
            rep.Update(plan);
            Assert.AreEqual(2, plan.SpecialityId);
        }
Beispiel #4
0
        public void DeleteAcademPlanTest()
        {
            AcademicPlanRepository rep = new AcademicPlanRepository();

            rep.Delete(26);
            AcademicPlan plan = rep.Read(26);

            Assert.IsNull(plan);
        }