public async Task GetSeriesTagsTest() { List <SeriesTag> data = await FredClient.GetSeriesTags("STLFSI"); Assert.IsNotNull(data); data = await FredClient.GetSeriesTags(DOES_NOT_EXIST); Assert.IsNull(data); }
public async Task SeriesTagTest() { SeriesTag data = (await FredClient.GetSeriesTags("STLFSI")).FirstOrDefault(); Assert.IsNotNull(data); Assert.IsFalse(String.IsNullOrEmpty(data.Symbol)); Assert.IsFalse(String.IsNullOrEmpty(data.Name)); Assert.IsFalse(String.IsNullOrEmpty(data.GroupID)); Assert.IsFalse(String.IsNullOrEmpty(data.Notes)); Assert.Greater(data.Popularity, 0); }