/// <summary>Creates an instance for the default language.</summary>
 /// <returns>A repository.</returns>
 public IContinentRepository ForDefaultCulture()
 {
     var size2DConverter = new Size2DConverter();
     var continentConverter = new ContinentConverter(size2DConverter);
     var continentCollectionConverter = new ContinentCollectionConverter(continentConverter);
     return new ContinentRepository(this.serviceClient, continentCollectionConverter);
 }
Ejemplo n.º 2
0
        /// <summary>Creates an instance for the default language.</summary>
        /// <returns>A repository.</returns>
        public IContinentRepository ForDefaultCulture()
        {
            var size2DConverter              = new Size2DConverter();
            var continentConverter           = new ContinentConverter(size2DConverter);
            var continentCollectionConverter = new ContinentCollectionConverter(continentConverter);

            return(new ContinentRepository(this.serviceClient, continentCollectionConverter));
        }
 /// <summary>Creates an instance for the given language.</summary>
 /// <param name="culture">The culture.</param>
 /// <returns>A repository.</returns>
 public IContinentRepository ForCulture(CultureInfo culture)
 {
     var size2DConverter = new Size2DConverter();
     var continentConverter = new ContinentConverter(size2DConverter);
     var continentCollectionConverter = new ContinentCollectionConverter(continentConverter);
     IContinentRepository repository = new ContinentRepository(this.serviceClient, continentCollectionConverter);
     repository.Culture = culture;
     return repository;
 }
Ejemplo n.º 4
0
        /// <summary>Creates an instance for the given language.</summary>
        /// <param name="culture">The culture.</param>
        /// <returns>A repository.</returns>
        public IContinentRepository ForCulture(CultureInfo culture)
        {
            var size2DConverter              = new Size2DConverter();
            var continentConverter           = new ContinentConverter(size2DConverter);
            var continentCollectionConverter = new ContinentCollectionConverter(continentConverter);
            IContinentRepository repository  = new ContinentRepository(this.serviceClient, continentCollectionConverter);

            repository.Culture = culture;
            return(repository);
        }
Ejemplo n.º 5
0
        /// <summary>Creates an instance for the default language.</summary>
        /// <param name="continentId">The continent identifier.</param>
        /// <returns>A repository.</returns>
        public IFloorRepository ForDefaultCulture(int continentId)
        {
            var pointOfInterestConverterFactory = new PointOfInterestConverterFactory();
            var vector2DConverter                  = new Vector2DConverter();
            var rectangleConverter                 = new RectangleConverter(vector2DConverter);
            var pointOfInterestConverter           = new PointOfInterestConverter(pointOfInterestConverterFactory, vector2DConverter);
            var pointOfInterestCollectionConverter = new CollectionConverter <PointOfInterestDTO, PointOfInterest>(pointOfInterestConverter);
            var renownTaskConverter                = new RenownTaskConverter(vector2DConverter);
            var renownTaskCollectionConverter      = new CollectionConverter <RenownTaskDTO, RenownTask>(renownTaskConverter);
            var skillChallengeConverter            = new SkillChallengeConverter(vector2DConverter);
            var skillChallengeCollectionConverter  = new CollectionConverter <SkillChallengeDTO, SkillChallenge>(skillChallengeConverter);
            var outputConverter                = new SectorConverter(vector2DConverter);
            var sectorCollectionConverter      = new CollectionConverter <SectorDTO, Sector>(outputConverter);
            var subregionConverter             = new SubregionConverter(rectangleConverter, pointOfInterestCollectionConverter, renownTaskCollectionConverter, skillChallengeCollectionConverter, sectorCollectionConverter);
            var keyValuePairConverter          = new SubregionKeyValuePairConverter(subregionConverter);
            var subregionKeyValuePairConverter = new DictionaryConverter <string, SubregionDTO, int, Subregion>(keyValuePairConverter);
            var regionConverter                = new RegionConverter(vector2DConverter, subregionKeyValuePairConverter);
            var regionKeyValuePairConverter    = new RegionKeyValuePairConverter(regionConverter);
            var regionCollectionConverter      = new DictionaryConverter <string, RegionDTO, int, Region>(regionKeyValuePairConverter);
            var size2DConverter                = new Size2DConverter();
            var floorConverter = new FloorConverter(size2DConverter, rectangleConverter, regionCollectionConverter);

            return(new FloorRepository(continentId, this.serviceClient, floorConverter));
        }
Ejemplo n.º 6
0
 /// <summary>Creates an instance for the default language.</summary>
 /// <param name="continentId">The continent identifier.</param>
 /// <returns>A repository.</returns>
 public IFloorRepository ForDefaultCulture(int continentId)
 {
     var pointOfInterestConverterFactory = new PointOfInterestConverterFactory();
     var vector2DConverter = new Vector2DConverter();
     var rectangleConverter = new RectangleConverter(vector2DConverter);
     var pointOfInterestConverter = new PointOfInterestConverter(pointOfInterestConverterFactory, vector2DConverter);
     var pointOfInterestCollectionConverter = new CollectionConverter<PointOfInterestDTO, PointOfInterest>(pointOfInterestConverter);
     var renownTaskConverter = new RenownTaskConverter(vector2DConverter);
     var renownTaskCollectionConverter = new CollectionConverter<RenownTaskDTO, RenownTask>(renownTaskConverter);
     var skillChallengeConverter = new SkillChallengeConverter(vector2DConverter);
     var skillChallengeCollectionConverter = new CollectionConverter<SkillChallengeDTO, SkillChallenge>(skillChallengeConverter);
     var outputConverter = new SectorConverter(vector2DConverter);
     var sectorCollectionConverter = new CollectionConverter<SectorDTO, Sector>(outputConverter);
     var subregionConverter = new SubregionConverter(rectangleConverter, pointOfInterestCollectionConverter, renownTaskCollectionConverter, skillChallengeCollectionConverter, sectorCollectionConverter);
     var keyValuePairConverter = new SubregionKeyValuePairConverter(subregionConverter);
     var subregionKeyValuePairConverter = new DictionaryConverter<string, SubregionDTO, int, Subregion>(keyValuePairConverter);
     var regionConverter = new RegionConverter(vector2DConverter, subregionKeyValuePairConverter);
     var regionKeyValuePairConverter = new RegionKeyValuePairConverter(regionConverter);
     var regionCollectionConverter = new DictionaryConverter<string, RegionDTO, int, Region>(regionKeyValuePairConverter);
     var size2DConverter = new Size2DConverter();
     var floorConverter = new FloorConverter(size2DConverter, rectangleConverter, regionCollectionConverter);
     return new FloorRepository(continentId, this.serviceClient, floorConverter);
 }