private RuleItem CreateItem(ICommissionRule rule)
		{
			if (rule == null)
				throw new ArgumentNullException("rule");

			return new RuleItem { Rule = rule, Name = _names[rule.GetType()] };
		}
Beispiel #2
0
        private RuleItem CreateItem(ICommissionRule rule)
        {
            if (rule == null)
            {
                throw new ArgumentNullException(nameof(rule));
            }

            return(new RuleItem {
                Rule = rule, Name = _names[rule.GetType()]
            });
        }