/// <summary> /// Initializes a new instance of the <see cref="BallDontLieService"/> class. /// </summary> /// <param name="telemetryClient">Application Insights DI.</param> /// <param name="httpClientFactory">The HTTP Client Factory DI.</param> /// <param name="teamsProvider">The NBA Teams Provider DI.</param> /// <param name="playersProvider">The NBA Players Provider DI.</param> /// <param name="gamesProvider">The NBA Games Provider DI.</param> /// <param name="statisticsProvider">The NBA Statistics Provider DI.</param> public BallDontLieService( TelemetryClient telemetryClient, IHttpClientFactory httpClientFactory, ITeamsProvider teamsProvider, IPlayersProvider playersProvider, IGamesProvider gamesProvider, IStatisticsProvider statisticsProvider) { this.telemetryClient = telemetryClient; this.httpClientFactory = httpClientFactory; this.teamsProvider = teamsProvider; this.playersProvider = playersProvider; this.gamesProvider = gamesProvider; this.statisticsProvider = statisticsProvider; }
public GamesController(IGamesProvider gamesProvider) { _gamesProvider = gamesProvider; }
public void AddProvider(IGamesProvider provider) { GameProviders.Add(provider); }
public GamesController(IGamesProvider gamesProvider) { if (gamesProvider == null) throw new ArgumentNullException(nameof(gamesProvider)); _gamesProvider = gamesProvider; }
/* Constructors */ public ProfilesProvider(IAppDatabaseProvider appDatabaseProvider, IGamesProvider gamesProvider) { _appDatabaseProvider = appDatabaseProvider; _gamesProvider = gamesProvider; }