BehaviorFocused.SoccerCupMatch.FindWinnerUsingAwayGoalsRule C# (CSharp) Method

FindWinnerUsingAwayGoalsRule() private method

private FindWinnerUsingAwayGoalsRule ( ) : Scores
return Scores
            private Scores FindWinnerUsingAwayGoalsRule()
            {
                if (Team1Scores.AwayLegGoals > Team2Scores.AwayLegGoals)
                    return Team1Scores;

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

                // The scores were exactly the same so no away goals winners
                return null;
            }