public async Task ReleaseDateTest()
    {
        ReleaseDate data = (await FredClient.GetReleaseDates("82", 0)).FirstOrDefault();

        Assert.IsNotNull(data);
        Assert.IsFalse(IsZeroString(data.ReleaseID));
        Assert.AreNotEqual(DateTime.MinValue, data.DateReleased);
    }
Example #2
0
    public async Task GetReleaseDatesTest()
    {
        List <ReleaseDate> data = await FredClient.GetReleaseDates("82", 0);

        Assert.IsNotNull(data);

        data = await FredClient.GetReleaseDates(DOES_NOT_EXIST, 0);

        Assert.IsNull(data);
    }