Beispiel #1
0
        public void AddInterestRate()
        {
            var result   = accountDataGateway.GetAll();
            var accounts = AccountMapper.Map(result);

            foreach (var account in accounts)
            {
                account.AddInterest();
                var updated = accountDataGateway.Update(account.Id, account.Balance);
            }
        }
Beispiel #2
0
        public List <Account> GetAll()
        {
            var result = accountDataGateway.GetAll();

            return(AccountMapper.Map(result));
        }