public DPFOffice Build(HtmlNode node, bool isAppointmentMandatory)
        {
            var office = new DPFOffice();

            office.Id = getId(node);
            office.IsAppointmentMandatory = isAppointmentMandatory;
            var nodeA = node.SelectSingleNode("a");

            if (nodeA == null)
            {
                return(office);
            }

            office.Name = nodeA.FirstChild.InnerText.Replace(" ", " ");
            if (nodeA.LastChild.Name == "font")
            {
                office.Alerts = nodeA.LastChild.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
                });
            }
        }