public async Task ReleaseTest()
    {
        Release data = (await FredClient.GetReleasesForSource("1")).FirstOrDefault();

        Assert.IsNotNull(data);
        Assert.IsFalse(IsZeroString(data.NativeID));
        Assert.IsFalse(String.IsNullOrEmpty(data.Name));
        Assert.AreNotEqual(DateTime.MinValue, data.RTStart);
    }
Esempio n. 2
0
    public async Task GetReleasesForSourceTest2()
    {
        List <Release> data = await FredClient.GetReleasesForSource("1", new DateTime(2020, 1, 1), new DateTime(2020, 12, 31));

        Assert.IsNotNull(data);

        data = await FredClient.GetReleasesForSource(DOES_NOT_EXIST, new DateTime(2020, 1, 1), new DateTime(2020, 12, 31));

        Assert.IsNull(data);
    }
Esempio n. 3
0
    public async Task GetReleasesForSourceTest()
    {
        List <Release> data = await FredClient.GetReleasesForSource("1");

        Assert.IsNotNull(data);

        data = await FredClient.GetReleasesForSource(DOES_NOT_EXIST);

        Assert.IsNull(data);
    }