Example #1
0
        public static Dictionary <string, string> SetRulesParameterTypes(this ICheckRuleRepository checkRulesRepository)
        {
            List <RuleParameterModel>   dictionary          = checkRulesRepository.GetRulesParameterTypesDict();
            Dictionary <string, string> RulesParameterTypes = new Dictionary <string, string>();

            foreach (var d in dictionary)
            {
                RulesParameterTypes.Add(d.ParameterName, d.ParameterType);
            }
            return(RulesParameterTypes);
        }
Example #2
0
 public CheckRuleService(ICheckRuleRepository checkRulesRepository, IMapper mapper)
 {
     _checkRulesRepository = checkRulesRepository;
     _mapper             = mapper;
     rulesParameterTypes = _checkRulesRepository.SetRulesParameterTypes();
 }