Пример #1
0
        //  [TestCase(@"http://his.crwr.utexas.edu/TXEvap/cuahsi_1_0.asmx")]
        public void TestDownload(string url)
        {
            WaterOneFlowClient cl = new WaterOneFlowClient(url);

            string file2 = cl.GetSitesXML();

            Assert.IsTrue(File.Exists(file2), "the GetSites file does not exist.");

            WaterOneFlow10Parser parser1 = new WaterOneFlow10Parser();
            IList <Site>         sites   = parser1.ParseGetSitesXml(file2);

            foreach (Site site in sites)
            {
                string fullSiteCode = site.Code;
                string siteFile     = cl.GetSiteInfoXML(fullSiteCode);
                Assert.IsTrue(File.Exists(siteFile), "the GetSiteInfo file does not exist.");
            }
        }