Example #1
0
        public async Task GetListingsWithPagination()
        {
            var listingService      = new ListingsService(BaseUri, HttpClient);
            var firstPageOfListings = await listingService.GetListingsAsync(1);

            var secondPageOfListings = await listingService.GetListingsAsync(2);

            Assert.IsTrue(firstPageOfListings.Any());
            Assert.IsTrue(secondPageOfListings.Any());
            Assert.AreNotEqual(firstPageOfListings.First().ListingId, secondPageOfListings.First().ListingId);
        }
Example #2
0
        public async Task GetListings()
        {
            var listingService = new ListingsService(BaseUri, HttpClient);
            var listings       = await listingService.GetListingsAsync();

            Assert.IsTrue(listings.Any());
        }