Inheritance: FindByRegionDataRequest
        public void FindNumberLeases()
        {
            var request = new FindNumberLeasesRequest { Limit = 2 };
            var leases = Client.NumberLeasesApi.Find(request);
            Console.WriteLine(leases);

            Assert.True(leases.Items.Count > 0);
            Assert.True(leases.Items[0].Labels.Count > 0);
        }
        public void Find()
        {
            var expectedJson = GetJsonPayload("/numbers/numberLeasesApi/response/findNumberLeases.json");
            var restRequest = MockRestResponse(expectedJson);

            var request = new FindNumberLeasesRequest
            {
                Limit = 5,
                Offset = 0,
                State = "LA",
                LabelName = "label"
            };
            var leases = Client.NumberLeasesApi.Find(request);
            Assert.That(Serializer.Serialize(leases), Is.EqualTo(expectedJson));

            Assert.AreEqual(Method.GET, restRequest.Value.Method);
            var requestBodyParam = restRequest.Value.Parameters.FirstOrDefault(p => p.Type == ParameterType.RequestBody);
            Assert.IsNull(requestBodyParam);
            Assert.That(restRequest.Value.Parameters, Has.Some.Matches<Parameter>(p => p.Name.Equals("limit") && p.Value.Equals("5")));
            Assert.That(restRequest.Value.Parameters, Has.Some.Matches<Parameter>(p => p.Name.Equals("offset") && p.Value.Equals("0")));
            Assert.That(restRequest.Value.Parameters, Has.Some.Matches<Parameter>(p => p.Name.Equals("state") && p.Value.Equals("LA")));
            Assert.That(restRequest.Value.Parameters, Has.Some.Matches<Parameter>(p => p.Name.Equals("labelName") && p.Value.Equals("label")));
        }
 /// <summary>
 /// Find number leases by prefix, zipcode, etc...
 /// This API is useful for finding all numbers currently owned by an account.
 /// </summary>
 /// <param name="request">request object with different fields to filter</param>
 /// <returns>paged leases</returns>
 /// <exception cref="BadRequestException">          in case HTTP response code is 400 - Bad request, the request was formatted improperly.</exception>
 /// <exception cref="UnauthorizedException">        in case HTTP response code is 401 - Unauthorized, API Key missing or invalid.</exception>
 /// <exception cref="AccessForbiddenException">     in case HTTP response code is 403 - Forbidden, insufficient permissions.</exception>
 /// <exception cref="ResourceNotFoundException">    in case HTTP response code is 404 - NOT FOUND, the resource requested does not exist.</exception>
 /// <exception cref="InternalServerErrorException"> in case HTTP response code is 500 - Internal Server Error.</exception>
 /// <exception cref="CallfireApiException">         in case HTTP response code is something different from codes listed above.</exception>
 /// <exception cref="CallfireClientException">      in case error has occurred in client.</exception>
 public Page<NumberLease> Find(FindNumberLeasesRequest request)
 {
     return Client.Get<Page<NumberLease>>(NUMBER_LEASES_PATH, request);
 }