public bool IsValid() { _errors.Clear(); foreach (var validationRule in _provider.GetRules()) { _errors.AddRange(validationRule.Validate(Customer)); } return(!_errors.Any()); }