예제 #1
0
        public async Task DeleteDomainWAFAsync_ValidParameters_ExpectedClientCall()
        {
            var ops = new DomainWAFOperations <WAF>(_client);
            await ops.DeleteDomainWAFAsync("test-domain.co.uk");

            await _client.Received().DeleteAsync("/ddosx/v1/domains/test-domain.co.uk/waf");
        }
예제 #2
0
 public async Task DeleteDomainWAFAsync_InvalidDomainName_ThrowsUKFastClientValidationException()
 {
     var ops = new DomainWAFOperations <WAF>(null);
     await Assert.ThrowsExceptionAsync <UKFastClientValidationException>(() =>
                                                                         ops.DeleteDomainWAFAsync(""));
 }