public void TestAsin()
 {
     WebQueryFactory wqf = new WebQueryFactory(null);
     IWebQuery wq = wqf.FromAlbumDescriptor(Albums[0][0]);
     wq.NeedCoverArt = true;
     var res = _Amf.Search(wq, new CancellationToken ()).ToList();
     Assert.That(res.Count, Is.EqualTo(1));
     var ress = res.FirstOrDefault();
     Assert.That(ress, Is.Not.Null);
     AssertAlbumDescriptor(ress.FindItem,Albums[1][0],  AlbumDescriptorCompareMode.AlbumandTrackMD);
 }
        public void TestName1()
        {
            WebQueryFactory wqf = new WebQueryFactory(null);
            IWebQuery wq = wqf.FromAlbumDescriptor(Albums[0][1]);
            wq.NeedCoverArt = false;
            var res = _Amf.Search(wq, new CancellationToken()).ToList();
            Assert.That(res.Count, Is.AtLeast(1));
            //var ress = res.FirstOrDefault(a => a.FindItem.Asin == "B000038I5D");

            var ress = res.FirstOrDefault(
                a => a.FindItem.Asin == "B000038I5D" ||
                a.FindItem.Asin == "B00006BNF2" ||
                a.FindItem.Asin == "B00F5AH8QY");

            Assert.That(ress, Is.Not.Null);
            //AssertAlbumDescriptor(ress.FindItem,Albums[1][1],  AlbumDescriptorCompareMode.AlbumandTrackMD);

        }
        public void TestName2()
        {
            WebQueryFactory wqf = new WebQueryFactory(null);
            IWebQuery wq = wqf.FromAlbumDescriptor(Albums[0][2]);
            wq.NeedCoverArt = false;
            var res = _Amf.Search(wq, new CancellationToken()).ToList();
            Assert.That(res.Count, Is.AtLeast(1));
            //a.FindItem.Asin == "B000002ADT" ||
            var ress = res.Where(a=>a.FindItem.TrackDescriptors.Count==5).FirstOrDefault(a =>  a.FindItem.Asin == "B00000DS40" || a.FindItem.Asin == "B003R9PDT4");
            Assert.That(ress, Is.Not.Null);
            //AssertAlbumDescriptor(ress.FindItem, Albums[1][2], AlbumDescriptorCompareMode.AlbumandTrackMD);

            AssertAlbumDescriptor(ress.FindItem, Albums[1][3], AlbumDescriptorCompareMode.AlbumandTrackMD);
        }