public QuestionnaireOutputCreator( IBuildOutputVisitor buildOutputVisitor, IQuestionnaireTypeChecker questionnaireTypeChecker, ICalculationService calculationService) { m_buildOutputVisitor = buildOutputVisitor; m_questionnaireTypeChecker = questionnaireTypeChecker; m_calculationService = calculationService; }
public CreateDefinitionFromTextCommandHandler( IQuestionnaireAstCreator astCreator, IDomainItemLocator domainItemLocator, IQuestionnaireOutputCreator outputCreator, IQuestionnaireTypeChecker questionnaireTypeChecker ) { m_astCreator = astCreator; m_domainItemLocator = domainItemLocator; m_outputCreator = outputCreator; m_questionnaireTypeChecker = questionnaireTypeChecker; }
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); }