protected void ValidateAmount(decimal amount) { AmountValidationUtility.ValidateGreaterThan0(amount, "Broker"); if (amount > MaxAmount) { throw new ArgumentException("Broker amount must be less or equal to 100."); } AmountValidationUtility.ValidateIsMultipleOf10(amount, "Broker"); }
private void ValidateAmount(decimal amount) { AmountValidationUtility.ValidateGreaterThan0(amount, "Order"); AmountValidationUtility.ValidateIsMultipleOf10(amount, "Order"); }