Exemplo n.º 1
0
        public void String2FrameTransformIsValid()
        {
            var csvString = Mother.DailyCsvData.First().Value;
            var bars      = Csv2Frame.LoadBarsFromString(csvString);

            Assert.IsTrue(bars.Count > 0);
        }
        public static CsvDataSource CreateFormStrings(IDictionary <string, string> csvData)
        {
            var res = new CsvDataSource();

            foreach (var kvp in csvData)
            {
                res.AddOrReplaceBars(kvp.Key, Csv2Frame.LoadBarsFromString(kvp.Value));
            }

            return(res);
        }
        public void CanLoadBarsFromCsvString()
        {
            var bars = Csv2Frame.LoadBarsFromString(Mother.GenericCsvData[Symbols.Sber]);

            Assert.IsTrue(bars.Count > 0);

            foreach (var kvp in bars)
            {
                Console.WriteLine($"{kvp.Key} => {kvp.Value}");
            }
        }