/// <summary> /// Creates an instance of the object. /// </summary> /// <param name="rule">Instance of rule.</param> /// <param name="property">Property to which the rule is attached.</param> /// <param name="priority">Rule priority.</param> internal RuleMethod(IBusinessRule rule, Core.IPropertyInfo property, int priority) { Rule = rule; PrimaryProperty = property; Priority = priority; RuleName = new Rules.RuleUri(Rule, PrimaryProperty).ToString(); }
/// <summary> /// Creates an instance of the object. /// </summary> /// <param name="rule">Instance of rule.</param> /// <param name="property">Property to which the rule is attached.</param> /// <param name="priority">Rule priority.</param> internal RuleMethod(IBusinessRule rule, Core.IPropertyInfo property, int priority) { Rule = rule; PrimaryProperty = property; Priority = priority; RuleName = new Rules.RuleUri(Rule, PrimaryProperty).ToString(); }