Exemplo n.º 1
0
        public void BackPOST_GivenAssessmentId_WorkflowSetAssessmentPreviousStepShouldBeCalled()
        {
            var assessmentId = Guid.NewGuid();

            _questionController.Back(assessmentId);

            A.CallTo(() => _workflowHandler.SetAssessmentPreviousStep(assessmentId)).MustHaveHappened(Repeated.Exactly.Once);
        }
Exemplo n.º 2
0
        public virtual ActionResult Back(Guid assessmentId)
        {
            _workflowHandler.SetAssessmentPreviousStep(assessmentId);

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