Пример #1
0
        static void Main(string[] args)
        {
            var sourceData = File.ReadAllText("HealthFacilitiesList.txt");
            var parser     = new HTMLFacilityParser();
            var list       = parser.GetFacilities(sourceData);

            Console.Read();
        }
Пример #2
0
        public void InitializeTest()
        {
            var htmlParser = new HTMLFacilityParser();
            var facilities = htmlParser.GetFacilities(FacilitiesSource);
            var kmlParser  = new KMLFacilityParser(KMLSource);

            kmlParser.AssociateWith(facilities);

            Assert.IsTrue(facilities[0].Latitude > 0);
        }