public void Visit(FareRuleCollection fareRules) { using (var textReader = GetTextReader <FareRule>()) { Feed.FareRules = new FareRuleCollection(GetEntityParser <FareRule>().Parse(textReader).Cast <FareRule>()); } }
public void Visit(FareRuleCollection fareRules) { }
protected virtual void OnFareAttributesChecked(FareRuleCollection fareRules, ValidationEventArgs e) { FareRulesChecked?.Invoke(fareRules, e); }
public void Visit(FareRuleCollection fareRules) { OnFareAttributesChecked(fareRules, new ValidationEventArgs(CheckValidity(fareRules))); }