private static bool ModelAHandler(IRuleDescription rule, ModelA target) { if (target.SUbModel == null) { return(true); } return(false); }
public BrokenRule(IRuleDescription rle, object objectBroke) { Description = rle.Description; RuleName = rle.RuleName; Severity = rle.Severity; ObjectBroke = objectBroke.GetType().Name; Reason = "Rule {0} with Severity {2} failed because {1}".FormatStr(rle.RuleName, rle.Description, rle.Severity.EnumName()); }
private static bool Handler(IRuleDescription rule, ModelA target) { if (target.SUbModel == null) { return(false); } else if (target.SUbModel.ModelNumber != target.ModelNumber) { return(true); } return(false); }
public ValidateCEvent(IPublisher Source, string Name, IRuleDescription Value) : base(Source, StandardEventChannel.Validation, Name, Value) { Rule = Value; }