Esempio n. 1
0
        public void WorkManagement()
        {
            var yesterday         = DateTime.Today.AddDays(-1);
            var balancesToProcess = _balanceService.ToProcess(yesterday);

            foreach (Balance balance in balancesToProcess)
            {
                _balanceService.GenerateBalanceWithInterest(balance, yesterday);
            }
        }