public DPFCity Build(HtmlNode node) { var office = new DPFCity(); office.Id = node.Attributes["value"]?.Value; office.Name = node.InnerText; return(office); }
private void registerReport(Dictionary <DPFCity, List <Tuple <DPFOffice, IReadOnlyCollection <string> > > > dictionaryResult, DPFCity city, DPFOffice office, IReadOnlyCollection <string> appointmentAlerts) { var value = new Tuple <DPFOffice, IReadOnlyCollection <string> >(office, appointmentAlerts); if (dictionaryResult.ContainsKey(city)) { dictionaryResult[city].Add(value); } else { dictionaryResult.Add(city, new List <Tuple <DPFOffice, IReadOnlyCollection <string> > >() { value }); } }