public void ImportTransactions(string filePath) { var fileLines = File.ReadAllLines(filePath).Where(x => !string.IsNullOrWhiteSpace(x)); foreach (var line in fileLines) { var transaction = ParseTransaction(line); _transactionStorage.AddTransaction(transaction); } }