Exemple #1
0
        /// <summary>
        ///     Merges the information from the provided <see cref="SeasonDTO" /> to the current instance
        /// </summary>
        /// <param name="season">A <see cref="SeasonCI" /> containing season info</param>
        public void Merge(SeasonCI season)
        {
            Contract.Requires(season != null);

            StartDate = season.StartDate;
            EndDate   = season.EndDate;
            Year      = season.Year;
            foreach (var cultureName in season._name)
            {
                _name[cultureName.Key] = cultureName.Value;
            }
        }
Exemple #2
0
        /// <summary>
        /// Merges the information from the provided <see cref="SeasonDTO"/> to the current instance
        /// </summary>
        /// <param name="season">A <see cref="SeasonCI"/> containing season info</param>
        public void Merge(SeasonCI season)
        {
            Guard.Argument(season, nameof(season)).NotNull();

            StartDate = season.StartDate;
            EndDate   = season.EndDate;
            Year      = season.Year;
            foreach (var cultureName in season._name)
            {
                _name[cultureName.Key] = cultureName.Value;
            }
        }
Exemple #3
0
        /// <summary>
        /// Merges the information from the provided <see cref="SeasonDTO"/> to the current instance
        /// </summary>
        /// <param name="season">A <see cref="SeasonCI"/> containing season info</param>
        public void Merge(SeasonCI season)
        {
            Guard.Argument(season, nameof(season)).NotNull();

            Id        = season.Id;
            StartDate = season.StartDate;
            EndDate   = season.EndDate;
            Year      = season.Year;
            foreach (var cultureName in season.Names)
            {
                Names[cultureName.Key] = cultureName.Value;
            }
            TournamentId = season.TournamentId;
        }