private void VerifyCompaniesInBiRSystem(SearchSettings searchSettings, IProgress <string> progress)
        {
            DateTime startTime = DateTime.Now;

            progress.Report(string.Format("{0}: Rozpoczęto sprawdzenie w systemie BiR (REGON).\n", DateTime.Now.ToLongTimeString()));

            BiRVerifier biRVerifier = new BiRVerifier();

            _verificationResult.BiRSystemVerResult = biRVerifier.AreCompaniesActive(_companiesReadFromFile);
            biRVerifier.Finish();

            progress.Report(string.Format("{0}: Zakończono sprawdzanie w systemie BiR (REGON). Czas trwania operacji: {1}s.\n", DateTime.Now.ToLongTimeString(), Math.Round((DateTime.Now - startTime).TotalSeconds, 0)));
        }
Example #2
0
        public void DeleteTestClient()
        {
            _verifier.Finish();

            BiRClientFactory.SetClient(null);
        }
Example #3
0
 public void Close()
 {
     _verifier.Finish();
 }