Exemplo n.º 1
0
        public void setstatusTest()
        {
            int     id     = 3;
            int     status = 3;
            PlanDAO pDAO   = new PlanDAO();
            Plan    actual = pDAO.showPlanInfo(id);
            int     temp   = actual.status;

            actual.status = status;
            pDAO.setStatus(id, status);
            Plan expect = pDAO.showPlanInfo(id);

            Assert.AreEqual(actual.status, expect.status);
            pDAO.setStatus(id, temp);
        }
Exemplo n.º 2
0
        //Просмотр информации о плане
        public ActionResult ShowPlanInfo(int id)
        {
            int                   tId   = id;
            Plan                  plan  = pDAO.showPlanInfo(tId);
            List <Step>           steps = stepDAO.getStepsByPlanId(tId);
            PlanAndStepsViewModel pASVM = new PlanAndStepsViewModel(plan, steps);

            return(View(pASVM));
        }