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

            _assessmentController.RestartStartAssessment(assessmentId);

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

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