public void LoadDataFromFile(string dataFilePath) { try { DataFilePath = dataFilePath; var transactions = _transactionLoader.Load(dataFilePath); Transactions.AddRange(transactions); StartDate = Transactions.StartDate; EndDate = Transactions.EndDate; } catch (Exception ex) { Logger.Logs.Instance.Log(ex); } }
public TransactionRepository(ITransactionLoader loader) { _data = loader.Load(); }