public async Task TestAPI() { var api = new ITunesSearchAPI(); var response = await api.GetSongs("Jack+Johnson"); response.Match(success => { Assert.AreEqual(50, success.Count); }, failure => throw failure); }
public TunesSearchEngineAdapter(ITunesSearchAPI api) => _api = api;