Exemplo n.º 1
0
        public void Delete_Update_Post()
        {
            Update update = new Update()
            {
                UpdateId = 1,
                Updatemsg = "abc",
                GoalId = 1,

            };
            updateRepository.Setup(x => x.GetById(1)).Returns(update);
            GoalController controller = new GoalController(goalService, metricService, focusService, supportService, updateService, commentService, userService, securityTokenService, supportInvitationService, goalStatusService, commentUserService, updateSupportService);
            var result = controller.DeleteConfirmedUpdate(1) as RedirectToRouteResult;
            Assert.AreEqual("Index", result.RouteValues["action"]);
        }