コード例 #1
0
 public QuestionnaireOutputCreator(
     IBuildOutputVisitor buildOutputVisitor,
     IQuestionnaireTypeChecker questionnaireTypeChecker,
     ICalculationService calculationService)
 {
     m_buildOutputVisitor       = buildOutputVisitor;
     m_questionnaireTypeChecker = questionnaireTypeChecker;
     m_calculationService       = calculationService;
 }
コード例 #2
0
 public CreateDefinitionFromTextCommandHandler(
     IQuestionnaireAstCreator astCreator,
     IDomainItemLocator domainItemLocator,
     IQuestionnaireOutputCreator outputCreator,
     IQuestionnaireTypeChecker questionnaireTypeChecker
     )
 {
     m_astCreator               = astCreator;
     m_domainItemLocator        = domainItemLocator;
     m_outputCreator            = outputCreator;
     m_questionnaireTypeChecker = questionnaireTypeChecker;
 }
コード例 #3
0
        private void CreateAndValidateForm(string validText)
        {
            var questionnaireCreator = m_serviceProvider
                                       .GetService <IQuestionnaireAstCreator>();

            m_questionnaireTypeChecker = m_serviceProvider
                                         .GetService <IQuestionnaireTypeChecker>();

            var domainItemId = questionnaireCreator.
                               Create(validText);

            Assert.IsNotNull(domainItemId, @"should have created a for from a valid definition");
            m_questionnaireTypeChecker.Validate(domainItemId);
        }