Пример #1
0
        public void RestartStagePOST_GivenAssessmentId_AssessmentStageShouldBeReset()
        {
            var assessmentId = Guid.NewGuid();

            _assessmentController.RestartStage(assessmentId);

            A.CallTo(() => _workflowHandler.ResetAssessmentStage(assessmentId)).MustHaveHappened(Repeated.Exactly.Once);
        }
Пример #2
0
        public virtual ActionResult RestartStage(Guid assessmentId)
        {
            _workflowHandler.ResetAssessmentStage(assessmentId);

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