public async Task RelatedCategoryTest()
    {
        RelatedCategory data = (await FredClient.GetRelatedCategories("32073")).FirstOrDefault();

        Assert.IsNotNull(data);
        Assert.IsFalse(IsZeroString(data.CategoryID));
        Assert.IsFalse(IsZeroString(data.RelatedCategoryID));
    }
Esempio n. 2
0
    public async Task GetRelatedCategoriesTest()
    {
        List <RelatedCategory> data = await FredClient.GetRelatedCategories("32073");

        Assert.IsNotNull(data);

        data = await FredClient.GetRelatedCategories(DOES_NOT_EXIST);

        Assert.IsNull(data);
    }