public async Task UpdateDomainPropertyAsync_ExpectedResult() { var req = new UpdateDomainPropertyRequest() { Value = "test" }; var ops = new DomainPropertyOperations <DomainProperty>(_client); await ops.UpdateDomainPropertyAsync("test-domain.co.uk", "00000000-0000-0000-0000-000000000000", req); await _client.Received() .PatchAsync($"/ddosx/v1/domains/test-domain.co.uk/properties/00000000-0000-0000-0000-000000000000", req); }
public async Task UpdateDomainPropertyAsync(string domainName, string propertyID, UpdateDomainPropertyRequest req) { if (string.IsNullOrWhiteSpace(domainName)) { throw new UKFastClientValidationException("Invalid domain name"); } if (string.IsNullOrWhiteSpace(propertyID)) { throw new UKFastClientValidationException("Invalid property id"); } await Client.PatchAsync($"/ddosx/v1/domains/{domainName}/properties/{propertyID}", req); }