예제 #1
0
파일: Section.cs 프로젝트: obhita/PROCenter
 /// <summary>Initializes a new instance of the <see cref="Section"/> class.</summary>
 /// <param name="assessmentInstance">The assessment instance.</param>
 public Section(AssessmentInstance assessmentInstance)
     : base(assessmentInstance)
 {
 }
        public static RuleEngineExecutor <AssessmentInstance> CreateRuleEngineExecutor(AssessmentInstance assessmentInstance)
        {
            var ruleCollection     = (IRuleCollection <AssessmentInstance>)IoC.CurrentContainer.TryResolve(typeof(IAssessmentRuleCollection), assessmentInstance.AssessmentName) ?? new EmptyRuleCollection <AssessmentInstance> ();
            var ruleEngineExecutor = new RuleEngineExecutor <AssessmentInstance> (assessmentInstance, ruleCollection);

            return(ruleEngineExecutor);
        }
예제 #3
0
 /// <summary>Initializes a new instance of the <see cref="Group"/> class.</summary>
 /// <param name="assessmentInstance">The assessment instance.</param>
 public Group(AssessmentInstance assessmentInstance)
     : base(assessmentInstance)
 {
 }