Updated UnitTests

This commit is contained in:
2025-10-27 16:29:31 +01:00
parent 4d05976ff6
commit 69816d0c02
56 changed files with 247 additions and 246 deletions

View File

@@ -197,8 +197,8 @@ publish-docs:
- docker - docker
- lnx - lnx
- server - server
# rules: rules:
# - if: $CI_COMMIT_TAG != null - if: $CI_COMMIT_TAG != null
before_script: before_script:
- apt-get update - apt-get update
- apt-get -y install zip unzip - apt-get -y install zip unzip

View File

@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- New automatic documentation generation using docfx. - New automatic documentation generation using docfx.
- Additional articles for the documentation. - Additional articles for the documentation.
- `DateTime` extensions for ISO 8601 formatting.
## [v0.1.0], [zones/v0.1.0], [dns/v0.1.0] - 2025-08-05 ## [v0.1.0], [zones/v0.1.0], [dns/v0.1.0] - 2025-08-05

View File

@@ -55,7 +55,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ObjectDisposedException>(async () => await Assert.ThrowsExactlyAsync<ObjectDisposedException>(async () =>
{ {
await client.DeleteAsync<object>("test", cancellationToken: TestContext.CancellationTokenSource.Token); await client.DeleteAsync<object>("test", cancellationToken: TestContext.CancellationToken);
}); });
} }
@@ -71,7 +71,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.DeleteAsync<object>(path, cancellationToken: TestContext.CancellationTokenSource.Token); await client.DeleteAsync<object>(path, cancellationToken: TestContext.CancellationToken);
}); });
} }
@@ -84,7 +84,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentException>(async () => await Assert.ThrowsExactlyAsync<ArgumentException>(async () =>
{ {
await client.DeleteAsync<object>("foo?bar=baz", cancellationToken: TestContext.CancellationTokenSource.Token); await client.DeleteAsync<object>("foo?bar=baz", cancellationToken: TestContext.CancellationToken);
}); });
} }
@@ -101,7 +101,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DeleteAsync<TestClass>("test", cancellationToken: TestContext.CancellationTokenSource.Token); var response = await client.DeleteAsync<TestClass>("test", cancellationToken: TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -156,7 +156,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
try try
{ {
// Act // Act
await client.DeleteAsync<TestClass>("foo", cancellationToken: TestContext.CancellationTokenSource.Token); await client.DeleteAsync<TestClass>("foo", cancellationToken: TestContext.CancellationToken);
Assert.Fail(); Assert.Fail();
} }
catch (AuthenticationException ex) catch (AuthenticationException ex)
@@ -181,7 +181,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DeleteAsync<string>("some-awesome-path", cancellationToken: TestContext.CancellationTokenSource.Token); var response = await client.DeleteAsync<string>("some-awesome-path", cancellationToken: TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -239,7 +239,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<JsonReaderException>(async () => await Assert.ThrowsExactlyAsync<JsonReaderException>(async () =>
{ {
await client.DeleteAsync<TestClass>("some-path", cancellationToken: TestContext.CancellationTokenSource.Token); await client.DeleteAsync<TestClass>("some-path", cancellationToken: TestContext.CancellationToken);
}); });
} }

View File

@@ -55,7 +55,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ObjectDisposedException>(async () => await Assert.ThrowsExactlyAsync<ObjectDisposedException>(async () =>
{ {
await client.GetAsync<object>("/test", cancellationToken: TestContext.CancellationTokenSource.Token); await client.GetAsync<object>("/test", cancellationToken: TestContext.CancellationToken);
}); });
} }
@@ -71,7 +71,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.GetAsync<object>(path, cancellationToken: TestContext.CancellationTokenSource.Token); await client.GetAsync<object>(path, cancellationToken: TestContext.CancellationToken);
}); });
} }
@@ -84,7 +84,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentException>(async () => await Assert.ThrowsExactlyAsync<ArgumentException>(async () =>
{ {
await client.GetAsync<object>("/foo?bar=baz", cancellationToken: TestContext.CancellationTokenSource.Token); await client.GetAsync<object>("/foo?bar=baz", cancellationToken: TestContext.CancellationToken);
}); });
} }
@@ -101,7 +101,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.GetAsync<TestClass>("test", cancellationToken: TestContext.CancellationTokenSource.Token); var response = await client.GetAsync<TestClass>("test", cancellationToken: TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -156,7 +156,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
try try
{ {
// Act // Act
await client.GetAsync<TestClass>("foo", cancellationToken: TestContext.CancellationTokenSource.Token); await client.GetAsync<TestClass>("foo", cancellationToken: TestContext.CancellationToken);
Assert.Fail(); Assert.Fail();
} }
catch (AuthenticationException ex) catch (AuthenticationException ex)
@@ -184,7 +184,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
try try
{ {
// Act // Act
await client.GetAsync<TestClass>("foo", cancellationToken: TestContext.CancellationTokenSource.Token); await client.GetAsync<TestClass>("foo", cancellationToken: TestContext.CancellationToken);
Assert.Fail(); Assert.Fail();
} }
catch (AuthenticationException ex) catch (AuthenticationException ex)
@@ -212,7 +212,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<CloudflareException>(async () => await Assert.ThrowsExactlyAsync<CloudflareException>(async () =>
{ {
await client.GetAsync<TestClass>("foo", cancellationToken: TestContext.CancellationTokenSource.Token); await client.GetAsync<TestClass>("foo", cancellationToken: TestContext.CancellationToken);
}); });
} }
@@ -230,7 +230,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.GetAsync<string>("some-awesome-path", new TestFilter(), TestContext.CancellationTokenSource.Token); var response = await client.GetAsync<string>("some-awesome-path", new TestFilter(), TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -288,7 +288,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<JsonReaderException>(async () => await Assert.ThrowsExactlyAsync<JsonReaderException>(async () =>
{ {
await client.GetAsync<TestClass>("some-path", cancellationToken: TestContext.CancellationTokenSource.Token); await client.GetAsync<TestClass>("some-path", cancellationToken: TestContext.CancellationToken);
}); });
} }
@@ -307,7 +307,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<CloudflareException>(async () => await Assert.ThrowsExactlyAsync<CloudflareException>(async () =>
{ {
await client.GetAsync<TestClass>("foo", cancellationToken: TestContext.CancellationTokenSource.Token); await client.GetAsync<TestClass>("foo", cancellationToken: TestContext.CancellationToken);
}); });
} }

View File

@@ -63,7 +63,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ObjectDisposedException>(async () => await Assert.ThrowsExactlyAsync<ObjectDisposedException>(async () =>
{ {
await client.PatchAsync<object, object>("test", _request, TestContext.CancellationTokenSource.Token); await client.PatchAsync<object, object>("test", _request, TestContext.CancellationToken);
}); });
} }
@@ -79,7 +79,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.PatchAsync<object, object>(path, _request, TestContext.CancellationTokenSource.Token); await client.PatchAsync<object, object>(path, _request, TestContext.CancellationToken);
}); });
} }
@@ -92,7 +92,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentException>(async () => await Assert.ThrowsExactlyAsync<ArgumentException>(async () =>
{ {
await client.PatchAsync<object, object>("foo?bar=baz", _request, TestContext.CancellationTokenSource.Token); await client.PatchAsync<object, object>("foo?bar=baz", _request, TestContext.CancellationToken);
}); });
} }
@@ -109,7 +109,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.PatchAsync<TestClass, TestClass>("test", _request, TestContext.CancellationTokenSource.Token); var response = await client.PatchAsync<TestClass, TestClass>("test", _request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -161,7 +161,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.PatchAsync<TestClass, StringContent>("test", stringContent, TestContext.CancellationTokenSource.Token); var response = await client.PatchAsync<TestClass, StringContent>("test", stringContent, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -215,7 +215,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
var ex = await Assert.ThrowsExactlyAsync<AuthenticationException>(async () => var ex = await Assert.ThrowsExactlyAsync<AuthenticationException>(async () =>
{ {
await client.PatchAsync<object, object>("foo", _request, TestContext.CancellationTokenSource.Token); await client.PatchAsync<object, object>("foo", _request, TestContext.CancellationToken);
}); });
// Assert // Assert
Assert.IsNull(ex.InnerException); Assert.IsNull(ex.InnerException);
@@ -236,7 +236,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.PatchAsync<string, TestClass>("some-awesome-path", _request, TestContext.CancellationTokenSource.Token); var response = await client.PatchAsync<string, TestClass>("some-awesome-path", _request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -294,7 +294,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<JsonReaderException>(async () => await Assert.ThrowsExactlyAsync<JsonReaderException>(async () =>
{ {
await client.PatchAsync<TestClass, TestClass>("some-path", _request, TestContext.CancellationTokenSource.Token); await client.PatchAsync<TestClass, TestClass>("some-path", _request, TestContext.CancellationToken);
}); });
} }

View File

@@ -63,7 +63,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ObjectDisposedException>(async () => await Assert.ThrowsExactlyAsync<ObjectDisposedException>(async () =>
{ {
await client.PostAsync<object, object>("test", _request, cancellationToken: TestContext.CancellationTokenSource.Token); await client.PostAsync<object, object>("test", _request, cancellationToken: TestContext.CancellationToken);
}); });
} }
@@ -79,7 +79,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.PostAsync<object, object>(path, _request, cancellationToken: TestContext.CancellationTokenSource.Token); await client.PostAsync<object, object>(path, _request, cancellationToken: TestContext.CancellationToken);
}); });
} }
@@ -92,7 +92,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentException>(async () => await Assert.ThrowsExactlyAsync<ArgumentException>(async () =>
{ {
await client.PostAsync<object, object>("foo?bar=baz", _request, cancellationToken: TestContext.CancellationTokenSource.Token); await client.PostAsync<object, object>("foo?bar=baz", _request, cancellationToken: TestContext.CancellationToken);
}); });
} }
@@ -109,7 +109,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.PostAsync<TestClass, TestClass>("test", _request, cancellationToken: TestContext.CancellationTokenSource.Token); var response = await client.PostAsync<TestClass, TestClass>("test", _request, cancellationToken: TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -161,7 +161,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.PostAsync<TestClass, StringContent>("test", stringContent, cancellationToken: TestContext.CancellationTokenSource.Token); var response = await client.PostAsync<TestClass, StringContent>("test", stringContent, cancellationToken: TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -212,7 +212,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.PostAsync<TestClass, object>("posting", null, cancellationToken: TestContext.CancellationTokenSource.Token); var response = await client.PostAsync<TestClass, object>("posting", null, cancellationToken: TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -264,7 +264,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
// Act & Assert // Act & Assert
var ex = await Assert.ThrowsExactlyAsync<AuthenticationException>(async () => var ex = await Assert.ThrowsExactlyAsync<AuthenticationException>(async () =>
{ {
await client.PostAsync<object, object>("foo", _request, cancellationToken: TestContext.CancellationTokenSource.Token); await client.PostAsync<object, object>("foo", _request, cancellationToken: TestContext.CancellationToken);
}); });
Assert.IsNull(ex.InnerException); Assert.IsNull(ex.InnerException);
Assert.AreEqual($"4711: foo & baz.{Environment.NewLine}4712: Happy Error!", ex.Message); Assert.AreEqual($"4711: foo & baz.{Environment.NewLine}4712: Happy Error!", ex.Message);
@@ -284,7 +284,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.PostAsync<string, TestClass>("some-awesome-path", _request, cancellationToken: TestContext.CancellationTokenSource.Token); var response = await client.PostAsync<string, TestClass>("some-awesome-path", _request, cancellationToken: TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -342,7 +342,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<JsonReaderException>(async () => await Assert.ThrowsExactlyAsync<JsonReaderException>(async () =>
{ {
await client.PostAsync<TestClass, TestClass>("some-path", _request, cancellationToken: TestContext.CancellationTokenSource.Token); await client.PostAsync<TestClass, TestClass>("some-path", _request, cancellationToken: TestContext.CancellationToken);
}); });
} }
@@ -360,7 +360,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.PostAsync<string, TestClass>("path", _request, cancellationToken: TestContext.CancellationTokenSource.Token); var response = await client.PostAsync<string, TestClass>("path", _request, cancellationToken: TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -63,7 +63,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ObjectDisposedException>(async () => await Assert.ThrowsExactlyAsync<ObjectDisposedException>(async () =>
{ {
await client.PutAsync<object, object>("test", _request, TestContext.CancellationTokenSource.Token); await client.PutAsync<object, object>("test", _request, TestContext.CancellationToken);
}); });
} }
@@ -79,7 +79,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.PutAsync<object, object>(path, _request, TestContext.CancellationTokenSource.Token); await client.PutAsync<object, object>(path, _request, TestContext.CancellationToken);
}); });
} }
@@ -92,7 +92,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentException>(async () => await Assert.ThrowsExactlyAsync<ArgumentException>(async () =>
{ {
await client.PutAsync<object, object>("foo?bar=baz", _request, TestContext.CancellationTokenSource.Token); await client.PutAsync<object, object>("foo?bar=baz", _request, TestContext.CancellationToken);
}); });
} }
@@ -109,7 +109,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.PutAsync<TestClass, TestClass>("test", _request, TestContext.CancellationTokenSource.Token); var response = await client.PutAsync<TestClass, TestClass>("test", _request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -161,7 +161,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.PutAsync<TestClass, StringContent>("test", stringContent, TestContext.CancellationTokenSource.Token); var response = await client.PutAsync<TestClass, StringContent>("test", stringContent, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -212,7 +212,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.PutAsync<TestClass, object>("putput", null, TestContext.CancellationTokenSource.Token); var response = await client.PutAsync<TestClass, object>("putput", null, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -264,7 +264,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
try try
{ {
// Act // Act
await client.PutAsync<object, object>("foo", _request, TestContext.CancellationTokenSource.Token); await client.PutAsync<object, object>("foo", _request, TestContext.CancellationToken);
Assert.Fail(); Assert.Fail();
} }
catch (AuthenticationException ex) catch (AuthenticationException ex)
@@ -289,7 +289,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.PutAsync<string, TestClass>("some-awesome-path", _request, TestContext.CancellationTokenSource.Token); var response = await client.PutAsync<string, TestClass>("some-awesome-path", _request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -347,7 +347,7 @@ namespace Cloudflare.Tests.CloudflareClientTests
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<JsonReaderException>(async () => await Assert.ThrowsExactlyAsync<JsonReaderException>(async () =>
{ {
await client.PutAsync<TestClass, TestClass>("some-path", _request, TestContext.CancellationTokenSource.Token); await client.PutAsync<TestClass, TestClass>("some-path", _request, TestContext.CancellationToken);
}); });
} }

View File

@@ -15,8 +15,8 @@
</PackageReference> </PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" /> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
<PackageReference Include="Moq" Version="4.20.72" /> <PackageReference Include="Moq" Version="4.20.72" />
<PackageReference Include="MSTest.TestAdapter" Version="4.0.0" /> <PackageReference Include="MSTest.TestAdapter" Version="4.0.1" />
<PackageReference Include="MSTest.TestFramework" Version="4.0.0" /> <PackageReference Include="MSTest.TestFramework" Version="4.0.1" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@@ -52,7 +52,7 @@ namespace Cloudflare.Dns.Tests.CustomNameserversExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.AddCustomNameserver(_request, TestContext.CancellationTokenSource.Token); var response = await client.AddCustomNameserver(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -68,7 +68,7 @@ namespace Cloudflare.Dns.Tests.CustomNameserversExtensions
Assert.AreEqual(_request.NameserverName, request.NameserverName); Assert.AreEqual(_request.NameserverName, request.NameserverName);
Assert.IsNull(request.NameserverSet); Assert.IsNull(request.NameserverSet);
_clientMock.Verify(m => m.PostAsync<CustomNameserver, InternalAddCustomNameserverRequest>($"/accounts/{AccountId}/custom_ns", It.IsAny<InternalAddCustomNameserverRequest>(), null, It.IsAny<CancellationToken>()), Times.Once); _clientMock.Verify(m => m.PostAsync<CustomNameserver, InternalAddCustomNameserverRequest>($"/accounts/{AccountId}/custom_ns", It.IsAny<InternalAddCustomNameserverRequest>(), null, TestContext.CancellationToken), Times.Once);
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }

View File

@@ -47,7 +47,7 @@ namespace Cloudflare.Dns.Tests.CustomNameserversExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DeleteCustomNameserver(AccountId, Nameserver, TestContext.CancellationTokenSource.Token); var response = await client.DeleteCustomNameserver(AccountId, Nameserver, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -60,7 +60,7 @@ namespace Cloudflare.Dns.Tests.CustomNameserversExtensions
Assert.AreEqual($"/accounts/{AccountId}/custom_ns/{Nameserver}", requestPath); Assert.AreEqual($"/accounts/{AccountId}/custom_ns/{Nameserver}", requestPath);
Assert.IsNull(queryFilter); Assert.IsNull(queryFilter);
_clientMock.Verify(m => m.DeleteAsync<IReadOnlyCollection<string>>($"/accounts/{AccountId}/custom_ns/{Nameserver}", null, It.IsAny<CancellationToken>()), Times.Once); _clientMock.Verify(m => m.DeleteAsync<IReadOnlyCollection<string>>($"/accounts/{AccountId}/custom_ns/{Nameserver}", null, TestContext.CancellationToken), Times.Once);
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }
@@ -74,7 +74,7 @@ namespace Cloudflare.Dns.Tests.CustomNameserversExtensions
var client = GetClient(); var client = GetClient();
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await client.DeleteCustomNameserver(AccountId, nameserver, TestContext.CancellationTokenSource.Token)); await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await client.DeleteCustomNameserver(AccountId, nameserver, TestContext.CancellationToken));
} }
private ICloudflareClient GetClient() private ICloudflareClient GetClient()

View File

@@ -45,7 +45,7 @@ namespace Cloudflare.Dns.Tests.CustomNameserversExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.ListCustomNameserver(AccountId, TestContext.CancellationTokenSource.Token); var response = await client.ListCustomNameserver(AccountId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -58,7 +58,7 @@ namespace Cloudflare.Dns.Tests.CustomNameserversExtensions
Assert.AreEqual($"/accounts/{AccountId}/custom_ns", requestPath); Assert.AreEqual($"/accounts/{AccountId}/custom_ns", requestPath);
Assert.IsNull(queryFilter); Assert.IsNull(queryFilter);
_clientMock.Verify(m => m.GetAsync<IReadOnlyCollection<CustomNameserver>>($"/accounts/{AccountId}/custom_ns", null, It.IsAny<CancellationToken>()), Times.Once); _clientMock.Verify(m => m.GetAsync<IReadOnlyCollection<CustomNameserver>>($"/accounts/{AccountId}/custom_ns", null, TestContext.CancellationToken), Times.Once);
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }

View File

@@ -71,7 +71,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.ShowDnsAccountSettings(AccountId, TestContext.CancellationTokenSource.Token); var response = await client.ShowDnsAccountSettings(AccountId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -85,7 +85,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
Assert.IsNull(queryFilter); Assert.IsNull(queryFilter);
_clientMock.Verify(m => m.GetAsync<DnsAccountSettings>($"/accounts/{AccountId}/dns_settings", null, It.IsAny<CancellationToken>()), Times.Once); _clientMock.Verify(m => m.GetAsync<DnsAccountSettings>($"/accounts/{AccountId}/dns_settings", null, TestContext.CancellationToken), Times.Once);
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }

View File

@@ -102,7 +102,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.UpdateDnsAccountSettings(_request, TestContext.CancellationTokenSource.Token); var response = await client.UpdateDnsAccountSettings(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -134,7 +134,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
Assert.AreEqual("admin.example.org", request.ZoneDefaults.SOA.ZoneAdministrator); Assert.AreEqual("admin.example.org", request.ZoneDefaults.SOA.ZoneAdministrator);
Assert.AreEqual(DnsZoneMode.Standard, request.ZoneDefaults.ZoneMode); Assert.AreEqual(DnsZoneMode.Standard, request.ZoneDefaults.ZoneMode);
_clientMock.Verify(m => m.PatchAsync<DnsAccountSettings, InternalUpdateDnsAccountSettingsRequest>($"/accounts/{AccountId}/dns_settings", It.IsAny<InternalUpdateDnsAccountSettingsRequest>(), It.IsAny<CancellationToken>()), Times.Once); _clientMock.Verify(m => m.PatchAsync<DnsAccountSettings, InternalUpdateDnsAccountSettingsRequest>($"/accounts/{AccountId}/dns_settings", It.IsAny<InternalUpdateDnsAccountSettingsRequest>(), TestContext.CancellationToken), Times.Once);
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }
@@ -146,7 +146,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.UpdateDnsAccountSettings(req, TestContext.CancellationTokenSource.Token); var response = await client.UpdateDnsAccountSettings(req, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -161,7 +161,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
Assert.IsNotNull(request); Assert.IsNotNull(request);
Assert.IsNull(request.ZoneDefaults); Assert.IsNull(request.ZoneDefaults);
_clientMock.Verify(m => m.PatchAsync<DnsAccountSettings, InternalUpdateDnsAccountSettingsRequest>($"/accounts/{AccountId}/dns_settings", It.IsAny<InternalUpdateDnsAccountSettingsRequest>(), It.IsAny<CancellationToken>()), Times.Once); _clientMock.Verify(m => m.PatchAsync<DnsAccountSettings, InternalUpdateDnsAccountSettingsRequest>($"/accounts/{AccountId}/dns_settings", It.IsAny<InternalUpdateDnsAccountSettingsRequest>(), TestContext.CancellationToken), Times.Once);
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }
@@ -176,7 +176,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.UpdateDnsAccountSettings(req, TestContext.CancellationTokenSource.Token); var response = await client.UpdateDnsAccountSettings(req, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -199,7 +199,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
Assert.IsNull(request.ZoneDefaults.SOA); Assert.IsNull(request.ZoneDefaults.SOA);
Assert.IsNull(request.ZoneDefaults.ZoneMode); Assert.IsNull(request.ZoneDefaults.ZoneMode);
_clientMock.Verify(m => m.PatchAsync<DnsAccountSettings, InternalUpdateDnsAccountSettingsRequest>($"/accounts/{AccountId}/dns_settings", It.IsAny<InternalUpdateDnsAccountSettingsRequest>(), It.IsAny<CancellationToken>()), Times.Once); _clientMock.Verify(m => m.PatchAsync<DnsAccountSettings, InternalUpdateDnsAccountSettingsRequest>($"/accounts/{AccountId}/dns_settings", It.IsAny<InternalUpdateDnsAccountSettingsRequest>(), TestContext.CancellationToken), Times.Once);
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
} }
@@ -213,7 +213,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.UpdateDnsAccountSettings(_request, TestContext.CancellationTokenSource.Token); await client.UpdateDnsAccountSettings(_request, TestContext.CancellationToken);
}); });
} }
@@ -227,7 +227,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.UpdateDnsAccountSettings(_request, TestContext.CancellationTokenSource.Token); await client.UpdateDnsAccountSettings(_request, TestContext.CancellationToken);
}); });
} }
@@ -243,7 +243,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.UpdateDnsAccountSettings(_request, TestContext.CancellationTokenSource.Token); await client.UpdateDnsAccountSettings(_request, TestContext.CancellationToken);
}); });
} }
@@ -259,7 +259,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.UpdateDnsAccountSettings(_request, TestContext.CancellationTokenSource.Token); await client.UpdateDnsAccountSettings(_request, TestContext.CancellationToken);
}); });
} }
@@ -275,7 +275,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.UpdateDnsAccountSettings(_request, TestContext.CancellationTokenSource.Token); await client.UpdateDnsAccountSettings(_request, TestContext.CancellationToken);
}); });
} }
@@ -292,7 +292,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.UpdateDnsAccountSettings(_request, TestContext.CancellationTokenSource.Token); await client.UpdateDnsAccountSettings(_request, TestContext.CancellationToken);
}); });
} }
@@ -308,7 +308,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.UpdateDnsAccountSettings(_request, TestContext.CancellationTokenSource.Token); await client.UpdateDnsAccountSettings(_request, TestContext.CancellationToken);
}); });
} }
@@ -324,7 +324,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.UpdateDnsAccountSettings(_request, TestContext.CancellationTokenSource.Token); await client.UpdateDnsAccountSettings(_request, TestContext.CancellationToken);
}); });
} }
@@ -340,7 +340,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.UpdateDnsAccountSettings(_request, TestContext.CancellationTokenSource.Token); await client.UpdateDnsAccountSettings(_request, TestContext.CancellationToken);
}); });
} }
@@ -357,7 +357,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.UpdateDnsAccountSettings(_request, TestContext.CancellationTokenSource.Token); await client.UpdateDnsAccountSettings(_request, TestContext.CancellationToken);
}); });
} }

View File

@@ -52,7 +52,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateInternalDnsView(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateInternalDnsView(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -85,7 +85,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
var response = await client.CreateInternalDnsView(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateInternalDnsView(_request, TestContext.CancellationToken);
}); });
} }
@@ -99,7 +99,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
var response = await client.CreateInternalDnsView(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateInternalDnsView(_request, TestContext.CancellationToken);
}); });
} }

View File

@@ -47,7 +47,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DeleteInternalDnsView(AccountId, ViewId, TestContext.CancellationTokenSource.Token); var response = await client.DeleteInternalDnsView(AccountId, ViewId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -45,7 +45,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.InternalDnsViewDetails(AccountId, ViewId, TestContext.CancellationTokenSource.Token); var response = await client.InternalDnsViewDetails(AccountId, ViewId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -47,7 +47,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.ListInternalDnsViews(AccountId, cancellationToken: TestContext.CancellationTokenSource.Token); var response = await client.ListInternalDnsViews(AccountId, cancellationToken: TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -79,7 +79,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
}; };
// Act // Act
var response = await client.ListInternalDnsViews(AccountId, filter, TestContext.CancellationTokenSource.Token); var response = await client.ListInternalDnsViews(AccountId, filter, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -52,7 +52,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.UpdateInternalDnsView(_request, TestContext.CancellationTokenSource.Token); var response = await client.UpdateInternalDnsView(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -88,7 +88,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
var response = await client.UpdateInternalDnsView(_request, TestContext.CancellationTokenSource.Token); var response = await client.UpdateInternalDnsView(_request, TestContext.CancellationToken);
}); });
} }
@@ -102,7 +102,7 @@ namespace Cloudflare.Dns.Tests.DnsAccountSettingsExtensions.Views
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
var response = await client.UpdateInternalDnsView(_request, TestContext.CancellationTokenSource.Token); var response = await client.UpdateInternalDnsView(_request, TestContext.CancellationToken);
}); });
} }

View File

@@ -47,7 +47,7 @@ namespace Cloudflare.Dns.Tests.DnsDnssecExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DeleteDnssecRecords(ZoneId, TestContext.CancellationTokenSource.Token); var response = await client.DeleteDnssecRecords(ZoneId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -63,7 +63,7 @@ namespace Cloudflare.Dns.Tests.DnsDnssecExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DnssecDetails(ZoneId, TestContext.CancellationTokenSource.Token); var response = await client.DnssecDetails(ZoneId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -74,7 +74,7 @@ namespace Cloudflare.Dns.Tests.DnsDnssecExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.EditDnssecStatus(_request, TestContext.CancellationTokenSource.Token); var response = await client.EditDnssecStatus(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -65,7 +65,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.BatchDnsRecords(_request, TestContext.CancellationTokenSource.Token); var response = await client.BatchDnsRecords(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -93,7 +93,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -150,7 +150,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -164,7 +164,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -182,7 +182,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -195,7 +195,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -224,7 +224,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -253,7 +253,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -282,7 +282,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -314,7 +314,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -336,7 +336,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -367,7 +367,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -381,7 +381,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -413,7 +413,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -442,7 +442,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentException>(async () => await Assert.ThrowsExactlyAsync<ArgumentException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -457,7 +457,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -493,7 +493,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -511,7 +511,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -528,7 +528,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -565,7 +565,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -582,7 +582,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -619,7 +619,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -636,7 +636,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -673,7 +673,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -690,7 +690,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -726,7 +726,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -744,7 +744,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -760,7 +760,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -783,7 +783,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -795,7 +795,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -818,7 +818,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -830,7 +830,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -853,7 +853,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -865,7 +865,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -886,7 +886,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -898,7 +898,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -921,7 +921,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -933,7 +933,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -956,7 +956,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -968,7 +968,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -991,7 +991,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -1003,7 +1003,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -1024,7 +1024,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -1036,7 +1036,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -1059,7 +1059,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -1071,7 +1071,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -1094,7 +1094,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -1106,7 +1106,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -1129,7 +1129,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -1141,7 +1141,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -1164,7 +1164,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -1181,7 +1181,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -1220,7 +1220,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -1238,7 +1238,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -1256,7 +1256,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -1274,7 +1274,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -1291,7 +1291,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -1328,7 +1328,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -1346,7 +1346,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -1384,7 +1384,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -1401,7 +1401,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -1437,7 +1437,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -1454,7 +1454,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -1490,7 +1490,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -1508,7 +1508,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -1525,7 +1525,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -1562,7 +1562,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }
@@ -1580,7 +1580,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -1616,7 +1616,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.CreateDnsRecord(_request, TestContext.CancellationTokenSource.Token); await client.CreateDnsRecord(_request, TestContext.CancellationToken);
}); });
} }

View File

@@ -47,7 +47,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DeleteDnsRecord(ZoneId, RecordId, TestContext.CancellationTokenSource.Token); var response = await client.DeleteDnsRecord(ZoneId, RecordId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -61,7 +61,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationTokenSource.Token); var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -103,7 +103,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationTokenSource.Token); var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -144,7 +144,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationTokenSource.Token); var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -185,7 +185,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationTokenSource.Token); var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -226,7 +226,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationTokenSource.Token); var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -267,7 +267,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationTokenSource.Token); var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -308,7 +308,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationTokenSource.Token); var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -349,7 +349,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationTokenSource.Token); var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -390,7 +390,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationTokenSource.Token); var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -431,7 +431,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationTokenSource.Token); var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -472,7 +472,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationTokenSource.Token); var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -513,7 +513,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationTokenSource.Token); var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -554,7 +554,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationTokenSource.Token); var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -595,7 +595,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationTokenSource.Token); var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -636,7 +636,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationTokenSource.Token); var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -677,7 +677,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationTokenSource.Token); var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -718,7 +718,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationTokenSource.Token); var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -759,7 +759,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationTokenSource.Token); var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -800,7 +800,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationTokenSource.Token); var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -841,7 +841,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationTokenSource.Token); var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -882,7 +882,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationTokenSource.Token); var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -908,7 +908,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationTokenSource.Token); var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -935,7 +935,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationTokenSource.Token); var response = await client.DnsRecordDetails(ZoneId, RecordId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -37,7 +37,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.ExportDnsRecords(ZoneId, TestContext.CancellationTokenSource.Token); var response = await client.ExportDnsRecords(ZoneId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -57,7 +57,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.ImportDnsRecords(_request, TestContext.CancellationTokenSource.Token); var response = await client.ImportDnsRecords(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -75,7 +75,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var part = request.First(); var part = request.First();
Assert.AreEqual("file", part.Headers.ContentDisposition.Name); Assert.AreEqual("file", part.Headers.ContentDisposition.Name);
Assert.IsInstanceOfType<ByteArrayContent>(part); Assert.IsInstanceOfType<ByteArrayContent>(part);
Assert.AreEqual(BindConfigContent, await part.ReadAsStringAsync(TestContext.CancellationTokenSource.Token)); Assert.AreEqual(BindConfigContent, await part.ReadAsStringAsync(TestContext.CancellationToken));
_clientMock.Verify(m => m.PostAsync<RecordImportResponse, MultipartFormDataContent>($"/zones/{ZoneId}/dns_records/import", It.IsAny<MultipartFormDataContent>(), It.IsAny<IQueryParameterFilter>(), It.IsAny<CancellationToken>()), Times.Once); _clientMock.Verify(m => m.PostAsync<RecordImportResponse, MultipartFormDataContent>($"/zones/{ZoneId}/dns_records/import", It.IsAny<MultipartFormDataContent>(), It.IsAny<IQueryParameterFilter>(), It.IsAny<CancellationToken>()), Times.Once);
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
@@ -93,7 +93,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.ImportDnsRecords(_request, TestContext.CancellationTokenSource.Token); var response = await client.ImportDnsRecords(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -111,7 +111,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var part = request.First(); var part = request.First();
Assert.AreEqual("file", part.Headers.ContentDisposition.Name); Assert.AreEqual("file", part.Headers.ContentDisposition.Name);
Assert.IsInstanceOfType<ByteArrayContent>(part); Assert.IsInstanceOfType<ByteArrayContent>(part);
Assert.AreEqual(BindConfigContent, await part.ReadAsStringAsync(TestContext.CancellationTokenSource.Token)); Assert.AreEqual(BindConfigContent, await part.ReadAsStringAsync(TestContext.CancellationToken));
_clientMock.Verify(m => m.PostAsync<RecordImportResponse, MultipartFormDataContent>($"/zones/{ZoneId}/dns_records/import", It.IsAny<MultipartFormDataContent>(), It.IsAny<IQueryParameterFilter>(), It.IsAny<CancellationToken>()), Times.Once); _clientMock.Verify(m => m.PostAsync<RecordImportResponse, MultipartFormDataContent>($"/zones/{ZoneId}/dns_records/import", It.IsAny<MultipartFormDataContent>(), It.IsAny<IQueryParameterFilter>(), It.IsAny<CancellationToken>()), Times.Once);
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
@@ -132,7 +132,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.ImportDnsRecords(_request, TestContext.CancellationTokenSource.Token); var response = await client.ImportDnsRecords(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -150,12 +150,12 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var part = request.First(); var part = request.First();
Assert.AreEqual("proxied", part.Headers.ContentDisposition.Name); Assert.AreEqual("proxied", part.Headers.ContentDisposition.Name);
Assert.IsInstanceOfType<StringContent>(part); Assert.IsInstanceOfType<StringContent>(part);
Assert.AreEqual(proxied.ToString().ToLower(), await part.ReadAsStringAsync(TestContext.CancellationTokenSource.Token)); Assert.AreEqual(proxied.ToString().ToLower(), await part.ReadAsStringAsync(TestContext.CancellationToken));
part = request.Last(); part = request.Last();
Assert.AreEqual("file", part.Headers.ContentDisposition.Name); Assert.AreEqual("file", part.Headers.ContentDisposition.Name);
Assert.IsInstanceOfType<ByteArrayContent>(part); Assert.IsInstanceOfType<ByteArrayContent>(part);
Assert.AreEqual(BindConfigContent, await part.ReadAsStringAsync(TestContext.CancellationTokenSource.Token)); Assert.AreEqual(BindConfigContent, await part.ReadAsStringAsync(TestContext.CancellationToken));
_clientMock.Verify(m => m.PostAsync<RecordImportResponse, MultipartFormDataContent>($"/zones/{ZoneId}/dns_records/import", It.IsAny<MultipartFormDataContent>(), It.IsAny<IQueryParameterFilter>(), It.IsAny<CancellationToken>()), Times.Once); _clientMock.Verify(m => m.PostAsync<RecordImportResponse, MultipartFormDataContent>($"/zones/{ZoneId}/dns_records/import", It.IsAny<MultipartFormDataContent>(), It.IsAny<IQueryParameterFilter>(), It.IsAny<CancellationToken>()), Times.Once);
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
@@ -176,7 +176,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.ImportDnsRecords(_request, TestContext.CancellationTokenSource.Token); var response = await client.ImportDnsRecords(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -194,12 +194,12 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var part = request.First(); var part = request.First();
Assert.AreEqual("proxied", part.Headers.ContentDisposition.Name); Assert.AreEqual("proxied", part.Headers.ContentDisposition.Name);
Assert.IsInstanceOfType<StringContent>(part); Assert.IsInstanceOfType<StringContent>(part);
Assert.AreEqual(proxied.ToString().ToLower(), await part.ReadAsStringAsync(TestContext.CancellationTokenSource.Token)); Assert.AreEqual(proxied.ToString().ToLower(), await part.ReadAsStringAsync(TestContext.CancellationToken));
part = request.Last(); part = request.Last();
Assert.AreEqual("file", part.Headers.ContentDisposition.Name); Assert.AreEqual("file", part.Headers.ContentDisposition.Name);
Assert.IsInstanceOfType<ByteArrayContent>(part); Assert.IsInstanceOfType<ByteArrayContent>(part);
Assert.AreEqual(BindConfigContent, await part.ReadAsStringAsync(TestContext.CancellationTokenSource.Token)); Assert.AreEqual(BindConfigContent, await part.ReadAsStringAsync(TestContext.CancellationToken));
_clientMock.Verify(m => m.PostAsync<RecordImportResponse, MultipartFormDataContent>($"/zones/{ZoneId}/dns_records/import", It.IsAny<MultipartFormDataContent>(), It.IsAny<IQueryParameterFilter>(), It.IsAny<CancellationToken>()), Times.Once); _clientMock.Verify(m => m.PostAsync<RecordImportResponse, MultipartFormDataContent>($"/zones/{ZoneId}/dns_records/import", It.IsAny<MultipartFormDataContent>(), It.IsAny<IQueryParameterFilter>(), It.IsAny<CancellationToken>()), Times.Once);
_clientMock.VerifyNoOtherCalls(); _clientMock.VerifyNoOtherCalls();
@@ -221,7 +221,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await client.ImportDnsRecords(_request, TestContext.CancellationTokenSource.Token)); await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await client.ImportDnsRecords(_request, TestContext.CancellationToken));
} }
private ICloudflareClient GetClient() private ICloudflareClient GetClient()

View File

@@ -85,7 +85,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.ListDnsRecords(ZoneId, cancellationToken: TestContext.CancellationTokenSource.Token); var response = await client.ListDnsRecords(ZoneId, cancellationToken: TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -122,7 +122,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.ListDnsRecords(ZoneId, filter, TestContext.CancellationTokenSource.Token); var response = await client.ListDnsRecords(ZoneId, filter, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -67,7 +67,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.OverwriteDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.OverwriteDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -47,7 +47,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.ScanDnsRecords(ZoneId, TestContext.CancellationTokenSource.Token); var response = await client.ScanDnsRecords(ZoneId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -69,7 +69,7 @@ namespace Cloudflare.Dns.Tests.DnsRecordsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.UpdateDnsRecord(_request, TestContext.CancellationTokenSource.Token); var response = await client.UpdateDnsRecord(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -67,7 +67,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.ShowDnsZoneSettings(ZoneId, TestContext.CancellationTokenSource.Token); var response = await client.ShowDnsZoneSettings(ZoneId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -95,7 +95,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.UpdateDnsZoneSettings(_request, TestContext.CancellationTokenSource.Token); var response = await client.UpdateDnsZoneSettings(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -139,7 +139,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.UpdateDnsZoneSettings(req, TestContext.CancellationTokenSource.Token); var response = await client.UpdateDnsZoneSettings(req, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -175,7 +175,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.UpdateDnsZoneSettings(_request, TestContext.CancellationTokenSource.Token); await client.UpdateDnsZoneSettings(_request, TestContext.CancellationToken);
}); });
} }
@@ -189,7 +189,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.UpdateDnsZoneSettings(_request, TestContext.CancellationTokenSource.Token); await client.UpdateDnsZoneSettings(_request, TestContext.CancellationToken);
}); });
} }
@@ -205,7 +205,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.UpdateDnsZoneSettings(_request, TestContext.CancellationTokenSource.Token); await client.UpdateDnsZoneSettings(_request, TestContext.CancellationToken);
}); });
} }
@@ -221,7 +221,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.UpdateDnsZoneSettings(_request, TestContext.CancellationTokenSource.Token); await client.UpdateDnsZoneSettings(_request, TestContext.CancellationToken);
}); });
} }
@@ -237,7 +237,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.UpdateDnsZoneSettings(_request, TestContext.CancellationTokenSource.Token); await client.UpdateDnsZoneSettings(_request, TestContext.CancellationToken);
}); });
} }
@@ -254,7 +254,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.UpdateDnsZoneSettings(_request, TestContext.CancellationTokenSource.Token); await client.UpdateDnsZoneSettings(_request, TestContext.CancellationToken);
}); });
} }
@@ -270,7 +270,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.UpdateDnsZoneSettings(_request, TestContext.CancellationTokenSource.Token); await client.UpdateDnsZoneSettings(_request, TestContext.CancellationToken);
}); });
} }
@@ -286,7 +286,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.UpdateDnsZoneSettings(_request, TestContext.CancellationTokenSource.Token); await client.UpdateDnsZoneSettings(_request, TestContext.CancellationToken);
}); });
} }
@@ -302,7 +302,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () =>
{ {
await client.UpdateDnsZoneSettings(_request, TestContext.CancellationTokenSource.Token); await client.UpdateDnsZoneSettings(_request, TestContext.CancellationToken);
}); });
} }
@@ -319,7 +319,7 @@ namespace Cloudflare.Dns.Tests.DnsZoneSettingsExtensions
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
{ {
await client.UpdateDnsZoneSettings(_request, TestContext.CancellationTokenSource.Token); await client.UpdateDnsZoneSettings(_request, TestContext.CancellationToken);
}); });
} }

View File

@@ -37,7 +37,7 @@ namespace Cloudflare.Zones.Tests.RegistrarExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var result = await client.GetDomain(AccountId, DomainName, TestContext.CancellationTokenSource.Token); var result = await client.GetDomain(AccountId, DomainName, TestContext.CancellationToken);
// Assert // Assert
Assert.AreEqual(_response, result); Assert.AreEqual(_response, result);
@@ -62,7 +62,7 @@ namespace Cloudflare.Zones.Tests.RegistrarExtensions
var client = GetClient(); var client = GetClient();
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await client.GetDomain(AccountId, domainName, TestContext.CancellationTokenSource.Token)); await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await client.GetDomain(AccountId, domainName, TestContext.CancellationToken));
} }
private ICloudflareClient GetClient() private ICloudflareClient GetClient()

View File

@@ -35,7 +35,7 @@ namespace Cloudflare.Zones.Tests.RegistrarExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var result = await client.ListDomains(AccountId, TestContext.CancellationTokenSource.Token); var result = await client.ListDomains(AccountId, TestContext.CancellationToken);
// Assert // Assert
Assert.AreEqual(_response, result); Assert.AreEqual(_response, result);

View File

@@ -46,7 +46,7 @@ namespace Cloudflare.Zones.Tests.RegistrarExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var result = await client.UpdateDomain(_request, TestContext.CancellationTokenSource.Token); var result = await client.UpdateDomain(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.AreEqual(_response, result); Assert.AreEqual(_response, result);
@@ -76,7 +76,7 @@ namespace Cloudflare.Zones.Tests.RegistrarExtensions
var client = GetClient(); var client = GetClient();
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await client.UpdateDomain(_request, TestContext.CancellationTokenSource.Token)); await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await client.UpdateDomain(_request, TestContext.CancellationToken));
} }
private ICloudflareClient GetClient() private ICloudflareClient GetClient()

View File

@@ -56,7 +56,7 @@ namespace Cloudflare.Zones.Tests.ZoneHoldsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateZoneHold(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateZoneHold(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -84,7 +84,7 @@ namespace Cloudflare.Zones.Tests.ZoneHoldsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateZoneHold(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateZoneHold(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -51,7 +51,7 @@ namespace Cloudflare.Zones.Tests.ZoneHoldsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.GetZoneHold(ZoneId, TestContext.CancellationTokenSource.Token); var response = await client.GetZoneHold(ZoneId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -56,7 +56,7 @@ namespace Cloudflare.Zones.Tests.ZoneHoldsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.RemoveZoneHold(_request, TestContext.CancellationTokenSource.Token); var response = await client.RemoveZoneHold(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -84,7 +84,7 @@ namespace Cloudflare.Zones.Tests.ZoneHoldsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.RemoveZoneHold(_request, TestContext.CancellationTokenSource.Token); var response = await client.RemoveZoneHold(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -60,7 +60,7 @@ namespace Cloudflare.Zones.Tests.ZoneHoldsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.UpdateZoneHold(_request, TestContext.CancellationTokenSource.Token); var response = await client.UpdateZoneHold(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -46,7 +46,7 @@ namespace Cloudflare.Zones.Tests.ZonePlansExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.AvailablePlanDetails(ZoneId, PlanId, TestContext.CancellationTokenSource.Token); var response = await client.AvailablePlanDetails(ZoneId, PlanId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -45,7 +45,7 @@ namespace Cloudflare.Zones.Tests.ZonePlansExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.ListAvailablePlans(ZoneId, TestContext.CancellationTokenSource.Token); var response = await client.ListAvailablePlans(ZoneId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -45,7 +45,7 @@ namespace Cloudflare.Zones.Tests.ZonePlansExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.ListAvailableRatePlans(ZoneId, TestContext.CancellationTokenSource.Token); var response = await client.ListAvailableRatePlans(ZoneId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -59,7 +59,7 @@ namespace Cloudflare.Zones.Tests.ZoneSettingsExtensions
// Act // Act
#pragma warning disable CS0618 #pragma warning disable CS0618
var response = await client.EditMultipleZoneSettings(_request, TestContext.CancellationTokenSource.Token); var response = await client.EditMultipleZoneSettings(_request, TestContext.CancellationToken);
#pragma warning restore CS0618 #pragma warning restore CS0618
// Assert // Assert

View File

@@ -53,7 +53,7 @@ namespace Cloudflare.Zones.Tests.ZoneSettingsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.EditZoneSetting(_request, TestContext.CancellationTokenSource.Token); var response = await client.EditZoneSetting(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -80,7 +80,7 @@ namespace Cloudflare.Zones.Tests.ZoneSettingsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.EditZoneSetting(_request, TestContext.CancellationTokenSource.Token); var response = await client.EditZoneSetting(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -105,7 +105,7 @@ namespace Cloudflare.Zones.Tests.ZoneSettingsExtensions
var client = GetClient(); var client = GetClient();
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentException>(async () => await client.EditZoneSetting(request, TestContext.CancellationTokenSource.Token)); await Assert.ThrowsExactlyAsync<ArgumentException>(async () => await client.EditZoneSetting(request, TestContext.CancellationToken));
} }
private ICloudflareClient GetClient() private ICloudflareClient GetClient()

View File

@@ -49,7 +49,7 @@ namespace Cloudflare.Zones.Tests.ZoneSettingsExtensions
// Act // Act
#pragma warning disable CS0618 #pragma warning disable CS0618
var response = await client.GetAllZoneSettings(ZoneId, TestContext.CancellationTokenSource.Token); var response = await client.GetAllZoneSettings(ZoneId, TestContext.CancellationToken);
#pragma warning restore CS0618 #pragma warning restore CS0618
// Assert // Assert

View File

@@ -45,7 +45,7 @@ namespace Cloudflare.Zones.Tests.ZoneSettingsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.GetZoneSetting<SSL>(ZoneId, TestContext.CancellationTokenSource.Token); var response = await client.GetZoneSetting<SSL>(ZoneId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -69,7 +69,7 @@ namespace Cloudflare.Zones.Tests.ZoneSettingsExtensions
var client = GetClient(); var client = GetClient();
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentException>(async () => await client.GetZoneSetting<TestSetting>(ZoneId, TestContext.CancellationTokenSource.Token)); await Assert.ThrowsExactlyAsync<ArgumentException>(async () => await client.GetZoneSetting<TestSetting>(ZoneId, TestContext.CancellationToken));
} }
private ICloudflareClient GetClient() private ICloudflareClient GetClient()

View File

@@ -58,7 +58,7 @@ namespace Cloudflare.Zones.Tests.ZoneSubscriptionsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateZoneSubscription(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateZoneSubscription(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -58,7 +58,7 @@ namespace Cloudflare.Zones.Tests.ZoneSubscriptionsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.UpdateZoneSubscription(_request, TestContext.CancellationTokenSource.Token); var response = await client.UpdateZoneSubscription(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -45,7 +45,7 @@ namespace Cloudflare.Zones.Tests.ZoneSubscriptionsExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.ZoneSubscriptionDetails(ZoneId, TestContext.CancellationTokenSource.Token); var response = await client.ZoneSubscriptionDetails(ZoneId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -107,7 +107,7 @@ namespace Cloudflare.Zones.Tests.ZonesExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.CreateZone(_request, TestContext.CancellationTokenSource.Token); var response = await client.CreateZone(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -136,7 +136,7 @@ namespace Cloudflare.Zones.Tests.ZonesExtensions
var client = GetClient(); var client = GetClient();
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await client.CreateZone(_request, TestContext.CancellationTokenSource.Token)); await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await client.CreateZone(_request, TestContext.CancellationToken));
} }
private ICloudflareClient GetClient() private ICloudflareClient GetClient()

View File

@@ -48,7 +48,7 @@ namespace Cloudflare.Zones.Tests.ZonesExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.DeleteZone(ZoneId, TestContext.CancellationTokenSource.Token); var response = await client.DeleteZone(ZoneId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -106,7 +106,7 @@ namespace Cloudflare.Zones.Tests.ZonesExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.EditZone(_request, TestContext.CancellationTokenSource.Token); var response = await client.EditZone(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -136,7 +136,7 @@ namespace Cloudflare.Zones.Tests.ZonesExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.EditZone(_request, TestContext.CancellationTokenSource.Token); var response = await client.EditZone(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -167,7 +167,7 @@ namespace Cloudflare.Zones.Tests.ZonesExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.EditZone(_request, TestContext.CancellationTokenSource.Token); var response = await client.EditZone(_request, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -198,7 +198,7 @@ namespace Cloudflare.Zones.Tests.ZonesExtensions
var client = GetClient(); var client = GetClient();
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<CloudflareException>(async () => await client.EditZone(_request, TestContext.CancellationTokenSource.Token)); await Assert.ThrowsExactlyAsync<CloudflareException>(async () => await client.EditZone(_request, TestContext.CancellationToken));
} }
[TestMethod] [TestMethod]
@@ -209,7 +209,7 @@ namespace Cloudflare.Zones.Tests.ZonesExtensions
var client = GetClient(); var client = GetClient();
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<CloudflareException>(async () => await client.EditZone(_request, TestContext.CancellationTokenSource.Token)); await Assert.ThrowsExactlyAsync<CloudflareException>(async () => await client.EditZone(_request, TestContext.CancellationToken));
} }
[TestMethod] [TestMethod]
@@ -222,7 +222,7 @@ namespace Cloudflare.Zones.Tests.ZonesExtensions
var client = GetClient(); var client = GetClient();
// Act & Assert // Act & Assert
await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await client.EditZone(_request, TestContext.CancellationTokenSource.Token)); await Assert.ThrowsExactlyAsync<ArgumentOutOfRangeException>(async () => await client.EditZone(_request, TestContext.CancellationToken));
} }
private ICloudflareClient GetClient() private ICloudflareClient GetClient()

View File

@@ -104,7 +104,7 @@ namespace Cloudflare.Zones.Tests.ZonesExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.ListZones(cancellationToken: TestContext.CancellationTokenSource.Token); var response = await client.ListZones(cancellationToken: TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);
@@ -133,7 +133,7 @@ namespace Cloudflare.Zones.Tests.ZonesExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.ListZones(filter, TestContext.CancellationTokenSource.Token); var response = await client.ListZones(filter, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -48,7 +48,7 @@ namespace Cloudflare.Zones.Tests.ZonesExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.RerunActivationCheck(ZoneId, TestContext.CancellationTokenSource.Token); var response = await client.RerunActivationCheck(ZoneId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);

View File

@@ -94,7 +94,7 @@ namespace Cloudflare.Zones.Tests.ZonesExtensions
var client = GetClient(); var client = GetClient();
// Act // Act
var response = await client.ZoneDetails(ZoneId, TestContext.CancellationTokenSource.Token); var response = await client.ZoneDetails(ZoneId, TestContext.CancellationToken);
// Assert // Assert
Assert.IsNotNull(response); Assert.IsNotNull(response);