public void ShowRedCard(HalfEnum half) { if (half == HalfEnum.First) { _redCardsInFirstHalfCount++; } else { _redCardsInSecondHalfCount++; } Console.WriteLine("What a foul. Referee pulls out a red card."); }
public void ShowYellowCard(HalfEnum half) { if (half == HalfEnum.First) { _yellowCardsInFirstHalfCount++; } else { _yellowCardsInSecontHalfCount++; } Console.WriteLine("Referre pulls out a yellow card!"); }