public void IsSerializable() { CanonicalName name = "axoom.com"; string json = JsonConvert.SerializeObject(name, _jsonSerializerSettings); json.Should().Be("\"axoom.com.\""); }
public AAAARecordSet(CanonicalName name, params AAAARecord[] records) : this(name, TimeSpan.FromHours(1), records) { }
public AAAARecordSet(CanonicalName name, TimeSpan ttl, params AAAARecord[] records) : base(name, ttl, records.OfType <Record>().ToArray()) { Type = RecordType.AAAA; }
public Zone(CanonicalName name, IEnumerable <CanonicalName> nameservers) { Name = name; Nameservers = new List <CanonicalName>(nameservers); }
public Zone(CanonicalName name, params CanonicalName[] nameservers) : this(name, (IEnumerable <CanonicalName>)nameservers) { }
public RecordSet(CanonicalName name, TimeSpan ttl, params Record[] records) { Name = name; Ttl = (uint)ttl.TotalSeconds; Records.AddRange(records); }