private void FindUserInfo(string username) { User user = _stregsystem.GetUserByUsername(username); if (user != null) { _ui.DisplayUserInfo(user); // maks 10 tranaktioner må vises i følge opg beskrivelsen IEnumerable <Transaction> userTransactions = _stregsystem.GetTransactions(user, 10); foreach (Transaction transaction in userTransactions) { _ui.DisplayTransaction(transaction); } if (user.Balance < 50) { _ui.DisplayUserBalanceWarning(user, user.Balance); } } else { _ui.DisplayUserNotFound(username); } }