public bool Equals(RequestMatchRules other) { return(other != null && UrlRules.Count() == other.UrlRules.Count() && !UrlRules.Except(other.UrlRules).Any() && HeaderRules.Count() == other.HeaderRules.Count() && !HeaderRules.Except(other.HeaderRules).Any() && QueryRules.Count() == other.QueryRules.Count() && !QueryRules.Except(other.QueryRules).Any() && BodyRules.Count() == other.BodyRules.Count() && other.BodyRules.All(br1 => BodyRules.Any(br2 => br1.Equals(br2)))); }
public void AddHeaderRule(Rule rule) { HeaderRules.Add(rule); rule.Parent = HeaderRules; }