/// <summary> /// Initializes a new instance of the <see cref="OddbSeasonProvider"/> class. /// </summary> /// <param name="httpClientFactory">Instance of the <see cref="IHttpClientFactory"/> interface.</param> /// <param name="logger">Instance of the <see cref="ILogger{OddbSeasonProvider}"/> interface.</param> /// <param name="oddbApiClient">Instance of <see cref="OddbApiClient"/>.</param> public OddbSeasonProvider(IHttpClientFactory httpClientFactory, ILogger <OddbSeasonProvider> logger, OddbApiClient oddbApiClient) { _httpClientFactory = httpClientFactory; _logger = logger; _oddbApiClient = oddbApiClient; }
public OddbApiClientTest(ITestOutputHelper output) { var serviceProvider = OddbServiceUtils.BuildServiceProvider <OddbApiClient>(output); _oddbApiClient = serviceProvider.GetService <OddbApiClient>(); }