public List<Account> ReadAccountNumbers(string fileName) { var accounts = new List<Account>(); var textEntries = GetFileTextEntries(fileName); var parser = new DigitParser(); foreach (var entry in textEntries) { accounts.Add(parser.GetAccount(entry)); } return accounts; }
public List <Account> ReadAccountNumbers(string fileName) { var accounts = new List <Account>(); var textEntries = GetFileTextEntries(fileName); var parser = new DigitParser(); foreach (var entry in textEntries) { accounts.Add(parser.GetAccount(entry)); } return(accounts); }
private Digit GetDigit(string digitCharacters) { var parser = new DigitParser(); return(parser.GetDigit(digitCharacters)); }
private Digit GetDigit(string digitCharacters) { var parser = new DigitParser(); return parser.GetDigit(digitCharacters); }