Beispiel #1
0
        public async void EnsureAsyncGetMixesReturnsItems()
        {
            // Only test happy path, as the MusicClient tests cover the unhappy path
            IMusicClientAsync client = new MusicClientAsync("test", "test", "gb", new MockApiRequestHandler(Resources.mixes));

            ListResponse<Mix> result = await client.GetMixes("test");
            Assert.Greater(result.Result.Count, 0, "Expected more than 0 results");

            result = await client.GetMixes(new MixGroup() { Id = "test" });
            Assert.Greater(result.Result.Count, 0, "Expected more than 0 results");
        }