Beispiel #1
0
        public void TestSeedCollectionScenarios()
        {
            var settings = new MixRadio.Tests.Internal.MockMusicClientSettings("clientid", "gb", "en");

            JObject recentMixes = JObject.Parse(Encoding.UTF8.GetString(Resources.user_recent_mixes));

            foreach (JToken mixJson in recentMixes.Value <JArray>("items"))
            {
                var mix = Mix.FromJToken(mixJson, settings);

                // Exercise the ID property...
                var id = mix.Id;
            }
        }
Beispiel #2
0
        public void TestSeedCollectionScenarios()
        {
            var settings = new MixRadio.Tests.Internal.MockMusicClientSettings("clientid", "gb", "en");

            JObject recentMixes = JObject.Parse(Encoding.UTF8.GetString(Resources.user_recent_mixes));

            foreach (JToken mixJson in recentMixes.Value<JArray>("items"))
            {
                var mix = Mix.FromJToken(mixJson, settings);

                // Exercise the ID property...
                var id = mix.Id;
            }
        }