public SportsRuApiFixture() { var logger = Mock.Of <ILogger <SportsRuApiService> >(); var sportsRuApiSettings = new SportsRuApiSettings("https://www.sports.ru", "https://stat.sports.ru"); SportsRuApiService = new SportsRuApiService(sportsRuApiSettings, logger); }
public SyncService(SportsContext sportsContext, ISportsRuApiService sportsRuApiService , INewsArticleDataService newsArticleDataService, ILogger <SyncService> logger) { _sportsContext = sportsContext; _sportsRuApiService = sportsRuApiService; _newsArticleDataService = newsArticleDataService; _logger = logger; }
public SportsRuApiServiceTests(SportsRuApiFixture sportsRuApiFixture, ITestOutputHelper testOutputHelper) : base(testOutputHelper) { _sportsRuApiService = sportsRuApiFixture.SportsRuApiService; }