public void QAVIDTest(QAVTest test) { Avq.UrlContenResult = File.ReadAllText(AvTimeSeriesIntradayJsonTestFile); object actual = Avq.QAVID(test.Symbol, info: test.Info); Assert.Equal(test.Expected, actual); }
public void QAVIDWebTest(QAVTest test) { if (test.OutputSize.Equals("full")) { Avq.UrlContenResult = FfeWeb.GetHttpResponseContent($"https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol={test.Symbol}&interval={test.Interval}&outputsize={test.OutputSize}&apikey={test.ApiKey}"); } else { Avq.UrlContenResult = FfeWeb.GetHttpResponseContent($"https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol={test.Symbol}&interval={test.Interval}&apikey={test.ApiKey}"); } object actual = Avq.QAVID(test.Symbol, info: test.Info, dataPointIndex: test.DatePart, interval: test.Interval, outputSize: test.OutputSize); QAVAssert(test, actual); }