示例#1
0
        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());
        }
示例#2
0
        public async void RequestWishlist()
        {
            var requstedData = await _steamRepository.GetUserWishlistData(_steamID);

            Assert.NotNull(requstedData);
        }