コード例 #1
0
        private static void SaveTransactionData()
        {
            var jsonFileName = @"C:\Junk\transaction-data.json";
            var textFileName = @"C:\Junk\transaction-data.txt";

            var encounters   = EncounterDataFactory.CreateEncounterData(100, startDate, endDate);
            var transactions = TransactionDataFactory.AddTransactionData(encounters, 10, startDate, endDate);

            FileWriter.SaveDataToJsonFile(transactions, jsonFileName);
            //FileWriter.SaveEncounterDataToTextFile(data, textFileName);
        }
コード例 #2
0
        private static void LoadTransactionDataIntoIndex()
        {
            MessageClient.SetupElasticClient();

            var startDate = new DateTime(2019, 6, 1);
            var endDate   = new DateTime(2019, 7, 1);

            var encounters = EncounterDataFactory.CreateEncounterData(100, startDate, endDate);
            var data       = TransactionDataFactory.AddTransactionData(encounters, 8, startDate, endDate);

            MessageClient.LoadTransactionDataIntoIndex(data);
        }