public void RestartStartAssessmentPOST_GivenAssessmentId_AssessmentShouldBeReset() { var assessmentId = Guid.NewGuid(); _assessmentController.RestartStartAssessment(assessmentId); A.CallTo(() => _workflowHandler.ResetAssessment(assessmentId)).MustHaveHappened(Repeated.Exactly.Once); }
public virtual ActionResult RestartStartAssessment(Guid assessmentId) { _workflowHandler.ResetAssessment(assessmentId); return(RedirectToAction(MVC.Question.Index(assessmentId))); }