public void FixtureSetup()
 {
     var region = new CfRegion(null, null, null, null, null, null, null, null, null, null);
     Client = new SoapNumberClient(MockClient.User(), MockClient.Password());
     RegionQuery = new CfRegionQuery(100, 0, region);
     SearchAvailableKeywords = new CfSearchAvailableKeywords(string.Empty);
     SearchAvailableNumbers = new CfSearchAvailableNumbers(null, true, 100);
     QueryKeywords = new CfQuery();
     QueryNumbers = new CfQueryNumbers(100, 0, region, null);
 }
Пример #2
0
 public CfNumber(string number1, string nationalFormat, bool tollFree, CfRegion region, CfNumberStatus?status,
                 CfLeaseInfo leaseInfo, CfNumberConfiguration numberConfiguration)
 {
     Number1             = number1;
     NationalFormat      = nationalFormat;
     TollFree            = tollFree;
     Region              = region;
     Status              = status;
     LeaseInfo           = leaseInfo;
     NumberConfiguration = numberConfiguration;
 }
 public Region(CfRegion source)
 {
     Prefix = source.Prefix;
     City = source.City;
     State = source.State;
     Zipcode = source.Zipcode;
     Country = source.Country;
     Lata = source.Lata;
     RateCenter = source.RateCenter;
     if (source.Latitude.HasValue)
     {
         Latitude = source.Latitude.Value;
         LatitudeSpecified = true;
     }
     if (source.Longitude.HasValue)
     {
         Longitude = source.Longitude.Value;
         LongitudeSpecified = true;
     }
     TimeZone = source.TimeZone;
 }
Пример #4
0
 public CfNumber(string number1, string nationalFormat, bool tollFree, CfRegion region, CfNumberStatus? status, 
     CfLeaseInfo leaseInfo, CfNumberConfiguration numberConfiguration)
 {
     Number1 = number1;
     NationalFormat = nationalFormat;
     TollFree = tollFree;
     Region = region;
     Status = status;
     LeaseInfo = leaseInfo;
     NumberConfiguration = numberConfiguration;
 }
 public CfRegionQuery(long maxResults, long firstResult, CfRegion region)
     : base(maxResults, firstResult)
 {
     Region = region;
 }
 public CfQueryNumbers(long maxResults, long firstResult, CfRegion region, string labelName)
     : base(maxResults, firstResult, region)
 {
     LabelName = labelName;
 }
 internal static Region ToRegion(CfRegion source)
 {
     return source == null ? null : new Region(source);
 }
 public CfSearchAvailableNumbers(CfRegion region, bool tollFree, int count)
 {
     Region = region;
     TollFree = tollFree;
     Count = count;
 }
 public CfRegionQueryResult(long totalResult, CfRegion[] region)
 {
     TotalResults = totalResult;
     Region = region;
 }
 public CfCreateNumberOrderBulkLocal(int count, CfRegion region)
 {
     Count = count;
     Region = region;
 }