Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 public GamesController(IGamesProvider gamesProvider)
 {
     _gamesProvider = gamesProvider;
 }
Ejemplo n.º 3
0
 public void AddProvider(IGamesProvider provider)
 {
     GameProviders.Add(provider);
 }
Ejemplo n.º 4
0
 public GamesController(IGamesProvider gamesProvider)
 {
     if (gamesProvider == null) throw new ArgumentNullException(nameof(gamesProvider));
     _gamesProvider = gamesProvider;
 }
Ejemplo n.º 5
0
 /* Constructors */
 public ProfilesProvider(IAppDatabaseProvider appDatabaseProvider, IGamesProvider gamesProvider)
 {
     _appDatabaseProvider = appDatabaseProvider;
     _gamesProvider       = gamesProvider;
 }