示例#1
0
        public void RestartFromBreak_GivenAssessmentId_WorkflowResetBreakShouldBeCalled()
        {
            var assessmentId = Guid.NewGuid();

            _assessmentController.RestartFromBreak(assessmentId);

            A.CallTo(() => _workflowHandler.RestartBreak(assessmentId)).MustHaveHappened(Repeated.Exactly.Once);
        }
示例#2
0
        public virtual ActionResult RestartFromBreak(Guid assessmentId)
        {
            _workflowHandler.RestartBreak(assessmentId);

            return(RedirectToAction(MVC.Question.Index(assessmentId)));
        }