public TwitchService(IOptionsMonitor <TwitchOptions> twitchOptions, IOptionsMonitor <TableStorageOptions> tableStorageOptions, IHttpContextAccessor httpContextAccessor, ITwitchHttpClient twitchHttpClient, IStorageService storageService, ILogger <TwitchService> logger) { _twitchOptions = twitchOptions.CurrentValue; _tableStorageOptions = tableStorageOptions.CurrentValue; _httpContextAccessor = httpContextAccessor; _twitchHttpClient = twitchHttpClient; _storageService = storageService; _logger = logger; }
public TwitchServiceTests() { _twitchOptionsMonitorMock = new Mock <IOptionsMonitor <TwitchOptions> >(); _tableStorageoptionsMonitorMock = new Mock <IOptionsMonitor <TableStorageOptions> >(); _httpContextAccessorMock = new Mock <IHttpContextAccessor>(); _storageServiceMock = new Mock <IStorageService>(); _loggerMock = new Mock <ILogger <TwitchService> >(); _fakeTwitchHttpClient = new FakeTwitchHttpClient(); }