private Person GetPerson(ImporterResultRowsAggregated aggregatedRow)
 {
     var person = new Person();
     person.Name = aggregatedRow.GetName();
     person.Email = aggregatedRow.GetEmail();
     person.Job = aggregatedRow.GetBeruf();
     person.Location = aggregatedRow.GetLocation();
     person.Url = aggregatedRow.GetUrl();
     return person;
 }
 private static Club GetClub(ImporterResultRowsAggregated aggregatedRow)
 {
     var club = new Club();
     club.Url = aggregatedRow.GetUrl();
     club.Email = aggregatedRow.GetEmail();
     club.Location = aggregatedRow.GetLocation();
     club.AreaOfWork = aggregatedRow.GetTaetigkeitsfeld();
     club.Name = aggregatedRow.GetName();
     return club;
 }
 private static Company GetCompany(ImporterResultRowsAggregated aggregatedRow)
 {
     var organisation = new Company();
     organisation.Name = aggregatedRow.GetName();
     organisation.Location = aggregatedRow.GetLocation();
     organisation.Url = aggregatedRow.GetUrl();
     organisation.Industry = aggregatedRow.GetBranche();
     organisation.Size = aggregatedRow.GetBeschaeftigte();
     organisation.WelfareBalanceFor2011 = aggregatedRow.IsBilanz2011();
     organisation.WelfareBalanceFor2012 = aggregatedRow.IsBilanz2012();
     organisation.Email = aggregatedRow.GetEmail();
     return organisation;
 }
        private List<ImporterResultRowsAggregated> Run(IEnumerable<ImporterResultRow> rows)
        {
            var result = new List<ImporterResultRowsAggregated>();
            foreach(var row in rows)
            {
                var aggregatedRow = result.Find(x => x.SubId == row.SubId);
                if(aggregatedRow == null){
                    aggregatedRow = new ImporterResultRowsAggregated();
                    result.Add(aggregatedRow);
                }
                aggregatedRow.SubId = row.SubId;
                aggregatedRow.Rows.Add(row);
            }

            return result;
        }
 private Politician GetPolitician(ImporterResultRowsAggregated aggregatedRow)
 {
     var politician = new Politician();
     politician.Capacity = aggregatedRow.GetPoliticalFunction();
     politician.Email = aggregatedRow.GetEmail();
     politician.Location = aggregatedRow.GetLocation();
     politician.Name = aggregatedRow.GetName();
     politician.Url = aggregatedRow.GetUrl();
     return politician;
 }