public JustToBeSafeViewModelBuilder(IQuestionViewModelBuilder questionViewModelBuilder, IRestfulHelper restfulHelper, IConfiguration configuration, IMappingEngine mappingEngine) { _questionViewModelBuilder = questionViewModelBuilder; _restfulHelper = restfulHelper; _configuration = configuration; _mappingEngine = mappingEngine; }
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; }
public QuestionController(IQuestionViewModelBuilder questionViewModelBuilder, IJustToBeSafeFirstViewModelBuilder justToBeSafeFirstViewModelBuilder) { _questionViewModelBuilder = questionViewModelBuilder; _justToBeSafeFirstViewModelBuilder = justToBeSafeFirstViewModelBuilder; }