protected static void CheckRule(IBusinessRule rule)
 {
     if (rule.IsBroken())
     {
         throw new BusinessRuleValidationException(rule);
     }
 }
Exemple #2
0
 protected void CheckRule(IBusinessRule rule)
 {
     if (rule.IsBroken())
     {
         throw new BusinessRuleViolationException(rule);
     }
 }
Exemple #3
0
 private void CheckRule(IBusinessRule rule)
 {
     if (rule.IsBroken())
     {
         throw new ApplicationException(rule.ExceptionResourceKey);
     }
 }
 protected void CheckRule(IBusinessRule rule, Action throwProperException)
 {
     if (rule.IsBroken())
     {
         throwProperException.Invoke();
     }
 }
Exemple #5
0
 protected static void CheckRule(IBusinessRule rule)
 {
     if (rule.IsBroken())
     {
         throw new DomainException(rule.Message);
     }
 }
Exemple #6
0
 protected void CheckRule(IBusinessRule businessRule)
 {
     if (businessRule.IsBroken())
     {
         throw new BusinessRuleValidationException(businessRule);
     }
 }
Exemple #7
0
        protected static bool CheckRule(IBusinessRule rule)
        {
            if (rule.IsBroken())
            {
                throw new BusinessRuleValidationException(rule);
            }

            return(false);
        }
    protected static void CheckRule(IBusinessRule rule)
    {
        if (rule.IsBroken())
        {
            // TODO:
            // throw new DomainValidationException(rule);

            throw new NotImplementedException();
        }
    }