public async Task GetMonthlyTimeSeriesAdjustedTest() { _apiKeyServiceMock.Setup(q => q.GetKey()).Returns(_realKeySrvice.GetKey()); var result = await _alphaVantageServiceReal.GetMonthlyTimeSeriesAdjustedAsync(_testSymbol); Assert.True(result?.Any() == true); }
public async Task <IActionResult> GetMonthlyTimeSeriesAdjustedAsync(string symbol) { var result = await _alphaVantageService.GetMonthlyTimeSeriesAdjustedAsync(symbol); return(Ok(new { symbol, Data = result, })); }