예제 #1
0
        public async Task SearchUsersTest()
        {
            var query      = "mountains";
            var client     = new UnsplasharpClient(Credentials.ApplicationId);
            var usersFound = await client.SearchUsers(query);

            var usersFoundPaged = await client.SearchUsers(query, 2);

            Assert.IsTrue(usersFound.Count > 0);
            Assert.IsTrue(usersFoundPaged.Count > 0);

            Assert.IsNotNull(client.LastUsersSearchQuery);
            Assert.IsTrue(client.LastUsersSearchTotalResults > 0);
            Assert.IsTrue(client.LastUsersSearchTotalPages > 0);
        }