public static ParentDataWriter New(IAreasReader areasReader, IGroupDataReader groupDataReader, WorksheetInfo worksheetInfo, 
     ProfileDataWriter profileDataWriter, IAreaType parentAreaType)
 {
     var categoryAreaType = parentAreaType as CategoryAreaType;
     return categoryAreaType != null
         ? (ParentDataWriter)new CategoryAreaDataWriter(areasReader, groupDataReader, worksheetInfo, profileDataWriter, categoryAreaType)
         : (ParentDataWriter)new SubnationalAreaDataWriter(areasReader, groupDataReader, worksheetInfo, profileDataWriter, parentAreaType);
 }
        public ProfileDataBuilder(ComparatorMap comparatorMap, Profile profile, List<int> restrictSearchProfileIds,
            IList<ParentArea> parentAreas, IAreaType subnationalAreaType)
        {
            this._comparatorMap = comparatorMap;
            this._profile = profile;
            this._restrictSearchProfileIds = restrictSearchProfileIds;
            this._parentAreas = parentAreas;

            _profileDataWriter = new ProfileDataWriter(profile);

            _profileDataWriter.AddOrganisationDetails(profile.Id);

            _nationalArea = comparatorMap.GetNationalComparator().Area;

            this._subnationalAreaType = subnationalAreaType;
        }
Beispiel #3
0
 public void addType(IAreaType t)
 {
     type = t;
 }
Beispiel #4
0
 public Area(string name, IAreaType type)
 {
     this.name = name;
     this.type = type;
 }
Beispiel #5
0
 public void addType(IAreaType t)
 {
     type = t;
 }
Beispiel #6
0
 public Area(string name, IAreaType type)
 {
     this.name = name;
     this.type = type;
 }
 public ProfileDataBuilder(ComparatorMap comparatorMap, Profile profile, List<int> restrictSearchProfileIds,
     IList<int> indicatorIds, IList<ParentArea> parentAreas, IAreaType subnationalAreaType)
     : this(comparatorMap, profile, restrictSearchProfileIds, parentAreas, subnationalAreaType)
 {
     this._indicatorIds = indicatorIds;
 }
Beispiel #8
0
 public void addAreaType(IAreaType newLocation)
 {
     Areas.Add(newLocation);
 }
Beispiel #9
0
 public void addAreaType(IAreaType newLocation)
 {
     Areas.Add(newLocation);
 }