コード例 #1
0
        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);
        }
コード例 #2
0
 public TunesSearchEngineAdapter(ITunesSearchAPI api) => _api = api;