예제 #1
0
 /// <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;
 }
예제 #2
0
        public OddbApiClientTest(ITestOutputHelper output)
        {
            var serviceProvider = OddbServiceUtils.BuildServiceProvider <OddbApiClient>(output);

            _oddbApiClient = serviceProvider.GetService <OddbApiClient>();
        }