public List <List <IGame> > GetGamesInCsv(string filePath) { if (File.Exists(filePath) != true) { throw new FileNotFoundException($"File at '{filePath}' could not be found."); } fileLines = new Queue <string>(File.ReadAllLines(filePath)); List <List <IGame> > rowsOfGames = new List <List <IGame> >(); while (fileLines.Count > 0) { rowsOfGames.Add(_stringParser.GetGamesInString(fileLines.Dequeue())); } return(rowsOfGames); }