public WorkFlowHandler(IUnitOfWork unitOfWork, ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher, IAssessmentHelper assessmentHelper, IQuestionAnswerHelper questionAnswerHelper, IWorkflowStepHelper workflowStepHelper) { _unitOfWork = unitOfWork; _commandDispatcher = commandDispatcher; _queryDispatcher = queryDispatcher; _assessmentHelper = assessmentHelper; _questionAnswerHelper = questionAnswerHelper; _workflowStepHelper = workflowStepHelper; }
public void Setup() { _questionViewModelBuilder = A.Fake <IQuestionViewModelBuilder>(); _workflowHandler = A.Fake <IWorkflowHandler>(); _assessmentHelper = A.Fake <IAssessmentHelper>(); _questionAnswerHelper = A.Fake <IQuestionAnswerHelper>(); _feedBackBuilder = A.Fake <IFeedBackBuilder>(); _copyrightViewModelBuilder = A.Fake <ICopyrightViewModelBuilder>(); _partialViewRenderer = A.Fake <IPartialViewRenderer>(); _urlHelper = A.Fake <IUrlHelper>(); _questionController = new QuestionController(_questionViewModelBuilder, _workflowHandler, _assessmentHelper, _questionAnswerHelper, _feedBackBuilder, _copyrightViewModelBuilder, _partialViewRenderer, _urlHelper); SetupAjaxRequest(false); }
public QuestionController(IQuestionViewModelBuilder questionViewModelBuilder, IWorkflowHandler workflowHandler, IAssessmentHelper assessmentHelper, IQuestionAnswerHelper questionAnswerHelper, IFeedBackBuilder feedBackBuilder, ICopyrightViewModelBuilder copyrightViewModelBuilder, IPartialViewRenderer partialViewRenderer, IUrlHelper urlHelper) : base(feedBackBuilder, copyrightViewModelBuilder) { _questionViewModelBuilder = questionViewModelBuilder; _workflowHandler = workflowHandler; _assessmentHelper = assessmentHelper; _questionAnswerHelper = questionAnswerHelper; _partialViewRenderer = partialViewRenderer; _urlHelper = urlHelper; }