Added timing information to CloudflareResponse

This commit is contained in:
2024-11-08 17:11:32 +01:00
parent 935632df27
commit 42455e596b
9 changed files with 77 additions and 58 deletions

View File

@@ -110,6 +110,7 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
Assert.IsNotNull(response.Errors);
Assert.IsNotNull(response.Messages);
Assert.IsNull(response.ResultInfo);
Assert.IsNull(response.Timing);
Assert.AreEqual(0, response.Errors.Count);
Assert.AreEqual(0, response.Messages.Count);
@@ -189,16 +190,12 @@ namespace Cloudflare.Core.Tests.CloudflareClientTests
Assert.IsTrue(response.Success);
Assert.IsNotNull(response.Errors);
Assert.IsNotNull(response.Messages);
Assert.IsNotNull(response.ResultInfo);
Assert.IsNull(response.ResultInfo);
Assert.IsNull(response.Timing);
Assert.AreEqual(0, response.Errors.Count);
Assert.AreEqual(0, response.Messages.Count);
Assert.AreEqual(0, response.ResultInfo.Count);
Assert.AreEqual(0, response.ResultInfo.Page);
Assert.AreEqual(0, response.ResultInfo.PerPage);
Assert.AreEqual(0, response.ResultInfo.TotalCount);
Assert.AreEqual("This is an awesome text ;-)", response.Result);
Assert.AreEqual(1, _httpHandlerMock.Callbacks.Count);