public async Task DeployDomainAsync_ValidParameters_ExpectedClientCall() { var ops = new DomainOperations <Domain>(_client); await ops.DeployDomainAsync("test-domain.co.uk"); await _client.Received().PostAsync("/ddosx/v1/domains/test-domain.co.uk/deploy"); }
public async Task DeployDomainAsync_InvalidDomainName_ThrowsUKFastClientValidationException() { var ops = new DomainOperations <Domain>(null); await Assert.ThrowsExceptionAsync <UKFastClientValidationException>(() => ops.DeployDomainAsync("")); }