Ejemplo n.º 1
0
        private static bool WriteStockPriceDetailsToFile(string filename, List <dynamic> stockPriceList)
        {
            var outputFilePath = string.Format(@"../../Data/Output/{0}.csv", filename);
            var input          = new WriteOutputStockPriceCsvFileInput();

            input.FilePath    = outputFilePath;
            input.HeadersList = new List <dynamic>(); // TODO: Send the list of Headers
            input.DetailsList = stockPriceList;
            var output = new WriteOutputStockPriceCsvFile().Execute(input);

            return(output.IsSuccessfullyWritten);
        }
Ejemplo n.º 2
0
 private static bool WriteStockPriceDetailsToFile(string filename, List<dynamic> stockPriceList)
 {
     var outputFilePath = string.Format(@"../../Data/Output/{0}.csv", filename);
     var input = new WriteOutputStockPriceCsvFileInput();
     input.FilePath = outputFilePath;
     input.HeadersList = new List<dynamic>(); // TODO: Send the list of Headers
     input.DetailsList = stockPriceList;
     var output = new WriteOutputStockPriceCsvFile().Execute(input);
     return output.IsSuccessfullyWritten;
 }