public async Task SeriesCategoryTest()
    {
        SeriesCategory data = (await FredClient.GetSeriesForCategory("125", false)).FirstOrDefault();

        Assert.IsNotNull(data);
        Assert.IsFalse(String.IsNullOrEmpty(data.Symbol));
        Assert.IsFalse(IsZeroString(data.CategoryID));
    }
Example #2
0
    public async Task GetSeriesForCategoryTest()
    {
        List <SeriesCategory> data = await FredClient.GetSeriesForCategory("125", false);

        Assert.IsNotNull(data);

        data = await FredClient.GetSeriesForCategory(DOES_NOT_EXIST, false);

        Assert.IsNull(data);
    }