BehaviorFocused.SoccerCupMatch.SoccerCupMatch C# (CSharp) Method

SoccerCupMatch() public method

public SoccerCupMatch ( System.Guid id, Scores team1Scores, Scores team2Scores ) : System
id System.Guid
team1Scores Scores
team2Scores Scores
return System
            public SoccerCupMatch(Guid id, Scores team1Scores, Scores team2Scores)
            {
                if (id == null)
                    throw new ArgumentNullException("Soccer cup match ID cannot be null");

                if (team1Scores == null)
                    throw new ArgumentNullException("Team 1 scores cannot be null");

                if (team2Scores == null)
                    throw new ArgumentNullException("Team 2 scores cannot be null");

                this.ID = id;
                this.Team1Scores = team1Scores;
                this.Team2Scores = team2Scores;
            }