Ejemplo n.º 1
0
        public void TestCreateReconciliationFileReaderFile()
        {
            var watcher = new System.IO.FileSystemWatcher();
            string path = @"C:\Reconciliation\CreditCard\In\testfile.txt";
            Reader reader = new Reader(watcher, @"C:\Reconciliation\CreditCard\");
            reader.CreateReconciliationFile(path);

            using (var container = new TransactionModelContainer())
            {
                var reconci = container.ReconciliationFiles.FirstOrDefault(x => x.Id == 1);
                byte[] data = reconci.Contents;
                string s = System.Text.ASCIIEncoding.ASCII.GetString(data);
            }
        }
Ejemplo n.º 2
0
        public void Run()
        {
            var watcher = new System.IO.FileSystemWatcher();
            var reader = new Reader(watcher, basePath);

            //Reader reader = new Reader(watcher, @"C:\Reconciliation\BBL\CreditCard\");
            reader.StartReading();

            while (running)
            {
                Thread.Sleep(5000);
            }

            reader.StopReading();
        }
Ejemplo n.º 3
0
        public void Run()
        {
            var watcher = new System.IO.FileSystemWatcher();
            var reader = new Reader(watcher, basePath);
            reader.StartReading();

            while (running)
            {
                Thread.Sleep(5000);
            }

            reader.StopReading();
        }