Exemplo n.º 1
0
        public void QAVWAWebTest(QAVTest test)
        {
            Avq.UrlContenResult = FfeWeb.GetHttpResponseContent($"https://www.alphavantage.co/query?function=TIME_SERIES_WEEKLY_ADJUSTED&symbol={test.Symbol}&apikey={test.ApiKey}");
            object actual = Avq.QAVWA(test.Symbol, info: test.Info, tradingWeek: test.DatePart, tradingDate: test.QuoteDate, bestMatch: test.BestMatch);

            QAVAssert(test, actual);
        }
Exemplo n.º 2
0
        public void QAVWATest(QAVTest test)
        {
            Avq.UrlContenResult = File.ReadAllText(AvTimeSeriesWeeklyAdjustedJsonTestFile);
            object actual = Avq.QAVWA(test.Symbol, info: test.Info, tradingWeek: test.DatePart, tradingDate: test.QuoteDate);

            Assert.Equal(test.Expected, actual);
        }