public async Task <List <WishlistGameModel> > GetGameModelsAsync(string steamID) { var receivedData = await _steamRepository.GetUserWishlistData(steamID); var jsonSerializerSettings = new JsonSerializerSettings(); jsonSerializerSettings.MissingMemberHandling = MissingMemberHandling.Ignore; Dictionary <string, WishlistGameDto> wishlistDictionary; wishlistDictionary = JsonConvert.DeserializeObject <Dictionary <string, WishlistGameDto> >(receivedData, jsonSerializerSettings); return(wishlistDictionary.Values.Select(_mapper.Map <WishlistGameModel>).ToList()); }
public async void RequestWishlist() { var requstedData = await _steamRepository.GetUserWishlistData(_steamID); Assert.NotNull(requstedData); }