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

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

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