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

            Assert.Equal(test.Expected, actual);
        }
Esempio n. 2
0
        public void QAVMTest(QAVTest test)
        {
            Avq.UrlContenResult = File.ReadAllText(AvTimeSeriesMonthlyJsonTestFile);
            object actual = Avq.QAVM(test.Symbol, info: test.Info, tradingMonth: test.DatePart, tradingDate: test.QuoteDate);

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