public QuestionController(IQuestionService questionService, IQuestionTransformer questionTransformer, IAnswersForNodeBuilder answersForNodeBuilder, ICacheManager<string, string> cacheManager) { _questionService = questionService; _questionTransformer = questionTransformer; _answersForNodeBuilder = answersForNodeBuilder; _cacheManager = cacheManager; }
public QuestionController(IQuestionService questionService, IQuestionTransformer questionTransformer, IAnswersForNodeBuilder answersForNodeBuilder, ICacheManager <string, string> cacheManager) { _questionService = questionService; _questionTransformer = questionTransformer; _answersForNodeBuilder = answersForNodeBuilder; _cacheManager = cacheManager; }
public QuestionController(IQuestionService questionService, IQuestionTransformer questionTransformer, IAnswersForNodeBuilder answersForNodeBuilder) { _questionService = questionService; _questionTransformer = questionTransformer; _answersForNodeBuilder = answersForNodeBuilder; var section = ConfigurationManager.GetSection(SectionName) as System.Collections.Hashtable; if (section == null) { throw new InvalidOperationException(string.Format("Missing section name {0}", SectionName)); } _systemVariables = section .Cast <System.Collections.DictionaryEntry>() .ToDictionary(n => n.Key.ToString(), n => n.Value.ToString()); }