public double?TotalInterest()
        {
            if (_totalInterest == null)
            {
                _totalInterest = CalculateInterest.Calculate(Wallets);
            }

            return(_totalInterest);
        }
Exemple #2
0
        public double?TotalInterest()
        {
            if (_totalInterest == null)
            {
                _totalInterest = CalculateInterest.Calculate(InterestRate(), _balance);
            }

            return(_totalInterest);
        }