Exemplo n.º 1
0
        public async Task TestSearchLastFirst()
        {
            var results = await client.Search("Sasaki Aki");

            Assert.AreEqual(1, results.Count());
            Assert.AreEqual("Aki Sasaki", results.ElementAt(0).name);
            Assert.AreEqual("s-2-0/2714", results.ElementAt(0).id);
            Assert.AreEqual(
                new Uri("http://warashi-asian-pornstars.fr/WAPdB-img/pornostars-f/a/k/2714/aki-sasaki/preview/mini/wapdb-aki-sasaki-pornostar-asiatique.warashi-asian-pornstars.fr.jpg"),
                results.ElementAt(0).cover
                );
        }
Exemplo n.º 2
0
        public async Task TestSearchFirstLast()
        {
            var results = await WarashiClient.Search("Maria Nagai").ConfigureAwait(false);

            Assert.AreEqual("Maria Nagai", results.ElementAt(0).Name);
            Assert.AreEqual("s-2-0/3743", results.ElementAt(0).Id);
            Assert.AreEqual(
                new Uri("http://warashi-asian-pornstars.fr/WAPdB-img/pornostars-f/m/a/3743/maria-nagai/preview/mini/wapdb-maria-nagai-pornostar-asiatique.warashi-asian-pornstars.fr.jpg"),
                results.ElementAt(0).Cover);
        }
 /// <inheritdoc />
 public async Task <IEnumerable <RemoteSearchResult> > GetSearchResults(PersonLookupInfo info, CancellationToken cancelationToken)
 {
     return(from actress in await WarashiClient.Search(info.Name).ConfigureAwait(false)
            select new RemoteSearchResult
     {
         Name = actress.Name,
         ProviderIds = new Dictionary <string, string>
         {
             { "Warashi", actress.Id },
         },
         ImageUrl = actress.Cover?.ToString(),
     });
 }