public void DownloadLaborForcePartRate_Annual_Success() { DMFX.BLS.Api.BLSApi api = new BLS.Api.BLSApi(); string code = ConfigurationManager.AppSettings["CODE_LABORFORCEPARTRATE"]; DateTime from = DateTime.Parse("2000/1/1"); DateTime to = DateTime.Parse("2019/12/31"); var result = api.Download(code, from, to); Assert.IsTrue(result != null); Assert.IsTrue(result.Ticker != null); Assert.IsTrue(result.Quotes != null); Assert.IsTrue(result.Quotes.Count > 0); Assert.IsTrue(result.Timeframe == BLS.Api.BLSApi.ETimeFrame.Annual); }
public void DownloadJobGains_Quarterly_Success() { DMFX.BLS.Api.BLSApi api = new BLS.Api.BLSApi(); string code = ConfigurationManager.AppSettings["CODE_JOBGAINS"]; DateTime from = DateTime.Parse("2000/1/1"); DateTime to = DateTime.Parse("2019/12/31"); var result = api.Download(code, from, to); Assert.IsTrue(result != null); Assert.IsTrue(result.Ticker != null); Assert.IsTrue(result.Quotes != null); Assert.IsTrue(result.Quotes.Count > 0); Assert.IsTrue(result.Timeframe == BLS.Api.BLSApi.ETimeFrame.Quarterly); }