public async Task DeleteDomainWAFRuleAsync_ValidParameters_ExpectedClientCall() { var ops = new DomainWAFRuleOperations <WAFRule>(_client); await ops.DeleteDomainWAFRuleAsync("test-domain.co.uk", "00000000-0000-0000-0000-000000000000"); await _client.Received().DeleteAsync("/ddosx/v1/domains/test-domain.co.uk/waf/rules/00000000-0000-0000-0000-000000000000"); }
public async Task DeleteDomainWAFRuleAsync_InvalidWAFRuleID_ThrowsUKFastClientValidationException() { var ops = new DomainWAFRuleOperations <WAFRule>(null); await Assert.ThrowsExceptionAsync <UKFastClientValidationException>(() => ops.DeleteDomainWAFRuleAsync("test-domain.co.uk", "")); }
public async Task DeleteDomainWAFRuleAsync_InvalidDomainName_ThrowsUKFastClientValidationException() { var ops = new DomainWAFRuleOperations <WAFRule>(null); await Assert.ThrowsExceptionAsync <UKFastClientValidationException>(() => ops.DeleteDomainWAFRuleAsync("", "00000000-0000-0000-0000-000000000000")); }