/// <summary>Creates an instance for the given language.</summary>
        /// <param name="culture">The culture.</param>
        /// <returns>A repository.</returns>
        public override IWorldRepository ForCulture(CultureInfo culture)
        {
            IWorldRepository repository = new WorldRepository(this.serviceClient);

            repository.Culture = culture;
            return(repository);
        }
Esempio n. 2
0
        /// <summary>Creates an instance for the given language.</summary>
        /// <param name="culture">The culture.</param>
        /// <returns>A repository.</returns>
        public IWorldRepository ForCulture(CultureInfo culture)
        {
            Contract.Ensures(Contract.Result <IWorldRepository>() != null);
            IWorldRepository repository = new WorldRepository(this.serviceClient);

            repository.Culture = culture;
            return(repository);
        }