public async Task CategoryTest()
    {
        Category data = await FredClient.GetCategory("125");

        Assert.IsNotNull(data);
        Assert.IsFalse(IsZeroString(data.NativeID));
        Assert.IsFalse(String.IsNullOrEmpty(data.Name));
        Assert.IsFalse(IsZeroString(data.ParentID));
    }
Example #2
0
    public async Task GetCategoryTest()
    {
        Category data = await FredClient.GetCategory("125");

        Assert.IsNotNull(data);

        data = await FredClient.GetCategory(DOES_NOT_EXIST);

        Assert.IsNull(data);
    }