Exemplo n.º 1
0
        public decimal MaximumRefundAvailable()
        {
            //Not really clear on the domain logic for refunds
            var maxRefundAvailable = 0.0m;

            if (Refunds != null)
            {
                maxRefundAvailable = Refunds.Sum(i => i.Amount);
            }

            return(maxRefundAvailable);
        }
Exemplo n.º 2
0
 public decimal MaximumRefundAvailable()
 => Refunds.Sum(r => r.Amount);