/// <summary> /// Gets the zones for the subscription. /// </summary> /// <seealso href="https://api.cloudflare.com/#dns-records-for-a-zone-list-dns-records"/> public static Task <IEnumerable <DnsRecord> > GetAllDnsRecordsAsync( this IDnsRecordClient client, IdentifierTag zoneId, DnsRecordGetParameters parameters = null) { if (client == null) { throw new ArgumentNullException(nameof(client)); } if (zoneId == null) { throw new ArgumentNullException(nameof(zoneId)); } return(client.GetAllDnsRecordsAsync(zoneId, CancellationToken.None, parameters)); }
/// <summary> /// Gets the zones for the subscription. /// </summary> /// <seealso href="https://api.cloudflare.com/#dns-records-for-a-zone-list-dns-records"/> public static Task <CloudFlareResponse <IReadOnlyList <DnsRecord> > > GetDnsRecordsAsync( this IDnsRecordClient client, IdentifierTag zoneId, DnsRecordGetParameters parameters = null) { if (client == null) { throw new ArgumentNullException(nameof(client)); } if (zoneId == null) { throw new ArgumentNullException(nameof(zoneId)); } return(client.GetDnsRecordsAsync(zoneId, CancellationToken.None, parameters)); }
public void SetUp() { _dnsRecordClient = A.Fake <IDnsRecordClient>(); _dnsRecordsUpdater = new DnsRecordUpdater(_dnsRecordClient); }
public DnsRecordUpdater(IDnsRecordClient dnsRecordClient) { _dnsRecordClient = dnsRecordClient; }