public ScoreboardMessageBuilderService(IScoreRetrievalService scoreRetriever, ICompetitionRoundLogicService competitionLogic, ILocationResolutionService locationResolution) { CompetitionLogic = competitionLogic; LocationResolution = locationResolution; #pragma warning disable 0618 // initial assignment, see comments near the property _scoreRetriever = scoreRetriever; #pragma warning restore 0618 }
public static string GetFullNameOrNull(this ILocationResolutionService service, string locationCode) { if (service == null) { throw new NullReferenceException(); } if (!service.IsValidLocation(locationCode)) { return(null); } return(service.GetFullName(locationCode)); }