public async Task Should_retrieve_hot_items() { HotItemsRequest request = new HotItemsRequest("boardgame"); HotItemsResponse response = await bgg.GetHotItemsAsync(request); Assert.NotNull(response.Result); }
public static List <HotItem> ToModel(this HotItemsResponse response) { return(response.Items.Select(item => new HotItem { Id = item.Id, Name = item.Name.Value, Rank = item.Rank, ThumbnailUrl = ConvertThumbnailValueToUri(item.Thumbnail.Value), YearPublished = (item.YearPublished != null) ? item.YearPublished.Value : string.Empty // At this time, only boardgame and rpg provide this value }).ToList()); }