public TeamStatistics(TeamStatisticsDTO dto)
        {
            Contract.Requires(dto != null);

            HomeAway       = dto.HomeOrAway;
            Cards          = dto.Cards;
            YellowCards    = dto.YellowCards;
            RedCards       = dto.RedCards;
            YellowRedCards = dto.YellowRedCards;
            CornerKicks    = dto.CornerKicks;
        }
Пример #2
0
        public TeamStatistics(TeamStatisticsDTO dto)
        {
            Guard.Argument(dto, nameof(dto)).NotNull();

            TeamId         = dto.TeamId;
            Name           = dto.Name;
            HomeAway       = dto.HomeOrAway;
            Cards          = dto.Cards;
            YellowCards    = dto.YellowCards;
            RedCards       = dto.RedCards;
            YellowRedCards = dto.YellowRedCards;
            CornerKicks    = dto.CornerKicks;
            GreenCards     = dto.GreenCards;
        }