Example #1
0
        private static void GetOldBatchNumber(GetOldBatchNumberOptions opts)
        {
            ConfigureLogging(opts.Debug);
            var batchService = new BatchNumberService();
            var now          = SystemClock.Instance.GetCurrentInstant();
            var batchNumber  = batchService.GetBatchNumberToBeDownloaded(now) - 1;

            Console.WriteLine(batchNumber);
        }
Example #2
0
        private static void BatchToDateRange(BatchToDateRangeOptions opts)
        {
            ConfigureLogging(opts.Debug);
            var batchService = new BatchNumberService();
            int batchNumber  = opts.BatchNumber;
            var dateRange    = batchService.GetDataRange(batchNumber);

            Console.WriteLine(dateRange);
        }