Example #1
0
        private static string GetScore(ICollection <Team> teams, FixtureEvents fixtureEvent)
        {
            var gameScore = fixtureEvent.GameScore;

            return($"{teams.Single(team => team.Id == gameScore.HomeTeamId).Name} " +
                   $"{gameScore.HomeTeamScore}-{gameScore.AwayTeamScore} " +
                   $"{teams.Single(team => team.Id == gameScore.AwayTeamId).Name}");
        }
Example #2
0
    private static string GetScore(FixtureEvents fixtureEvent)
    {
        var gameTime = fixtureEvent.FixtureScore.Minutes != 0 ?  $"({fixtureEvent.FixtureScore.Minutes}')" : "";

        return($"{fixtureEvent.FixtureScore.HomeTeam.Name} " +
               $"{fixtureEvent.FixtureScore.HomeTeamScore}-{fixtureEvent.FixtureScore.AwayTeamScore} " +
               $"{fixtureEvent.FixtureScore.AwayTeam.Name} " +
               gameTime);
    }