GetAll() 공개 메소드

Gets all users from within instance. To paginate and to get more data, use since_id.
public GetAll ( string sinceId = null, long limit = MaxLimit ) : Task>
sinceId string If specified, will only return users with id higher than since_id (newer).
limit long Number of users to be returned. Default and max value: 100
리턴 Task>
        public async Task GetAll_WithSinceId_GetsListOfUsers(UserSyncanoClient client)
        {
            //when
            var result = await client.GetAll(TestData.OldUserId);

            //then
            result.ShouldNotBeNull();
            result.ShouldNotBeEmpty();
            result.Count.ShouldEqual(1);
        }
 public async Task GetAll_WithTooBigLimit_ThrowsException(UserSyncanoClient client)
 {
     try
     {
         //when
         await client.GetAll(limit: UserSyncanoClient.MaxLimit + 1);
         throw new Exception("GetAll should throw an exception.");
     }
     catch (Exception e)
     {
         //then
         e.ShouldBeType<ArgumentException>();
     }
 }
        public async Task GetAll_WithLimit_GetsListOfUsers(UserSyncanoClient client)
        {
            //when
            var result = await client.GetAll(limit: 1);

            //then
            result.ShouldNotBeNull();
            result.ShouldNotBeEmpty();
            result.Count.ShouldEqual(1);
        }