static void Main(string[] args) { var sourceData = File.ReadAllText("HealthFacilitiesList.txt"); var parser = new HTMLFacilityParser(); var list = parser.GetFacilities(sourceData); Console.Read(); }
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); }
public void Init() { FacilitiesSource = @"<tr style='background-color:#EEEEEE;'> <td style='width:175px;'><a href='facility.aspx?id=24'>Arima District Health Facility</a></td><td style='width:200px;'>Queen Mary Avenue, Arima</td><td style='width:100px;'>(868)-667-4714</td><td style='width:75px;'>District Health Facility</td><td style='width:50px;'>NCRHA</td> </tr><tr style='background-color:White;'> <td style='width:175px;'><a href='facility.aspx?id=28'>Arouca Health Centre</a></td><td style='width:200px;'>Corner George Street and Golden Grove Road, Arouca</td><td style='width:100px;'>(868)-642-1065</td><td style='width:75px;'>Health Centre</td><td style='width:50px;'>NCRHA</td> </tr><tr style='background-color:#EEEEEE;'> <td style='width:175px;'><a href='facility.aspx?id=7'>Barataria Health Centre</a></td><td style='width:200px;'>Eastern Main Road and Seventh Street, Barataria</td><td style='width:100px;'>(868)-638-2124</td><td style='width:75px;'>Health Centre</td><td style='width:50px;'>NWRHA</td> </tr><tr style='background-color:White;'> <td style='width:175px;'><a href='facility.aspx?id=94'>Belle Garden Health Centre</a></td><td style='width:200px;'>Belle Garden</td><td style='width:100px;'>(868)-660-5606</td><td style='width:75px;'>Health Centre</td><td style='width:50px;'>TRHA</td> </tr><tr style='background-color:#EEEEEE;'> <td style='width:175px;'><a href='facility.aspx?id=95'>Bethel Health Centre</a></td><td style='width:200px;'>Bethel</td><td style='width:100px;'>(868)-639-8580</td><td style='width:75px;'>Health Centre</td><td style='width:50px;'>TRHA</td> </tr>" ; Facility = @"<tr style='background-color:#EEEEEE;'> <td style='width:175px;'><a href='facility.aspx?id=95'>Bethel Health Centre</a></td><td style='width:200px;'>Bethel</td><td style='width:100px;'>(868)-639-8580</td><td style='width:75px;'>Health Centre</td><td style='width:50px;'>TRHA</td> </tr>" ; Parser = new HTMLFacilityParser(); }