Esempio n. 1
0
        public void PlanItemService_GetPlanItemById_Test()
        {
            var id = Guid.Parse("c9610ba5-3bbe-4c1e-9c9d-730751f7619a");

            var item = svc.GetPlanItemById(id);

            Assert.AreEqual(id, item.PlanItemID);
        }
Esempio n. 2
0
        public ActionResult Delete(Guid id)
        {
            var svc = new PlanItemService(Guid.Parse(User.Identity.GetUserId()));

            return(View(new PlanItemDelete(svc.GetPlanItemById(id))));
        }