BehaviorFocused.SoccerCupMatch.FindWinnerOfPenaltyShootout C# (CSharp) Method

FindWinnerOfPenaltyShootout() private method

private FindWinnerOfPenaltyShootout ( ) : Scores
return Scores
            private Scores FindWinnerOfPenaltyShootout()
            {
                if (Team1Scores.ShootoutScore > Team2Scores.ShootoutScore)
                    return Team1Scores;

                if (Team2Scores.ShootoutScore > Team1Scores.ShootoutScore)
                    return Team2Scores;

                throw new ThereWasNoPenaltyShootout();
            }
        }