public void TestBTVpur()
        {
            var ep = new ExpiredProduct
            {
                Name     = "btvpur alsap 8, suspension for injection",
                SPC_Link = "ema.europa.eu"
            };
            var spc = VMDPIDFactory.GetSpc(ep).Result;
            var sp  = SPCParser.GetTargetSpeciesFromPdf(spc);

            Assert.IsNotNull(sp, "Nothing returned");
            Assert.IsTrue(sp.Length == 2, $"Returned {sp.Length} species instead of 2");
            Assert.IsTrue(sp.Intersect(new[] { "sheep", "cattle" }).Count() == 2, $"Returned {string.Join(',', sp)} instead of cattle,sheep");
        }
        public void TestPurevaxRcch()
        {
            var ep = new ExpiredProduct
            {
                Name     = "purevax rcch",
                SPC_Link = "ema.europa.eu"
            };
            var spc = VMDPIDFactory.GetSpc(ep).Result;
            var sp  = SPCParser.GetTargetSpeciesFromPdf(spc);

            Assert.IsNotNull(sp, "Nothing returned");
            Assert.IsTrue(sp.Length == 1, $"Returned {sp.Length} species instead of 1");
            Assert.IsTrue(sp.Intersect(new[] { "cats" }).Count() == 1, $"Returned {string.Join(',', sp)} instead of cats");
        }
        public void TestTargetSpeciesExtractionLocal()
        {
            var pid = VMDPIDFactory.GetVmdPid().Result;

            foreach (var ep in pid.ExpiredProducts.Where(ep => !EPARTools.IsEPAR(ep.SPC_Link)))
            {
                var spc = VMDPIDFactory.GetSpc(ep).Result;
                Debug.WriteLine(spc);
                spc = spc.ToLowerInvariant().EndsWith(".doc") ? WordConverter.ConvertDocToDocx(spc) : spc;
                var ts = SPCParser.GetTargetSpecies(spc);
                Assert.IsNotNull(ts, $"null ts for {ep.Name}, {spc}");
                Assert.IsTrue(ts.Any(), $"empty ts for {ep.Name}, {spc}");
                Assert.IsFalse(ts.Any(string.IsNullOrWhiteSpace), $"blank species for {ep.Name}, {spc}");
            }
        }