Ejemplo n.º 1
0
        /// <summary>Creates an instance for the given language.</summary>
        /// <param name="culture">The culture.</param>
        /// <returns>A repository.</returns>
        public ISkinRepository ForCulture(CultureInfo culture)
        {
            Contract.Ensures(Contract.Result <ISkinRepository>() != null);
            ISkinRepository repository = new SkinRepository(this.serviceClient);

            repository.Culture = culture;
            return(repository);
        }
Ejemplo n.º 2
0
        /// <summary>Creates an instance for the given language.</summary>
        /// <param name="culture">The culture.</param>
        /// <returns>A repository.</returns>
        public ISkinRepository ForCulture(CultureInfo culture)
        {
            if (culture == null)
            {
                throw new ArgumentNullException("culture", "Precondition: culture != null");
            }

            ISkinRepository repository = new SkinRepository(this.serviceClient);

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