public void SaveYahooData(IList <YahooNormalized> yahooRecords, string path)
        {
            var yahooTreeData = YahooHelper.BuildYahooTreeDataList(yahooRecords);

            _yahooTreeDataRepository.CollectionName    = "Yahoo";
            _yahooTreeDataRepository.Path              = path;
            _yahooTreeDataRepository.NamesFileContents = YahooHelper.BuildYahooNamesFile();

            _yahooTreeDataRepository.SaveData(yahooTreeData);
        }
 public void SaveForexData(IList <ForexDto> forexRecords, int period, string path)
 {
     _forexTreeDataRepository.Path = path;
     _forexTreeDataRepository.NamesFileContents = ForexHelper.BuildForexNamesFile();
     foreach (var record in forexRecords)
     {
         _forexTreeDataRepository.CollectionName = Path.Combine(period.ToString(), "Forex_" + record.FileName);
         _forexTreeDataRepository.SaveData(record.ForexData);
     }
 }