public async void decodeAsyncTest()
        {
            backend.Class.IBookstoreService s = new backend.Class.IBookstoreService();


            IEnumerable <backend.IBook> result = await s.GetBooksAsync("dude");

            //var first = result.First();
            //bool test = first.Author.Contains("Swede");
            //Assert.IsTrue(test);
        }
Exemple #2
0
        private async void btnSearch_Click(object sender, EventArgs e)
        {
            // null test on input
            if (tBSearch.Text != null)
            {
                backend.Class.IBookstoreService s      = new backend.Class.IBookstoreService();
                IEnumerable <backend.IBook>     result = await s.GetBooksAsync(tBSearch.Text);

                PopulateSearchListView(result);
            }
        }