public async Task GetDomainRecordAsync_ValidParameters_ExpectedResult()
        {
            _client.GetAsync <Record>($"/ddosx/v1/domains/test-domain.co.uk/records/00000000-0000-0000-0000-000000000000")
            .Returns(new Record()
            {
                ID = "00000000-0000-0000-0000-000000000000"
            });

            var ops    = new DomainRecordOperations <Record>(_client);
            var record = await ops.GetDomainRecordAsync("test-domain.co.uk", "00000000-0000-0000-0000-000000000000");

            Assert.AreEqual("00000000-0000-0000-0000-000000000000", record.ID);
        }
 public async Task GetDomainRecordAsync_InvalidRecordID_ThrowsUKFastClientValidationException()
 {
     var ops = new DomainRecordOperations <Record>(null);
     await Assert.ThrowsExceptionAsync <UKFastClientValidationException>(() =>
                                                                         ops.GetDomainRecordAsync("test-domain.co.uk", ""));
 }
 public async Task GetDomainRecordAsync_InvalidDomainName_ThrowsUKFastClientValidationException()
 {
     var ops = new DomainRecordOperations <Record>(null);
     await Assert.ThrowsExceptionAsync <UKFastClientValidationException>(() =>
                                                                         ops.GetDomainRecordAsync("", "00000000-0000-0000-0000-000000000000"));
 }