From 4953da57d2d88d42eb6b2adec44c7cc0936c6e7a Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Thu, 28 Nov 2024 22:37:54 +0000 Subject: [PATCH] Officers now also return an empty object when the company doesn't exist instead of 404 --- .../Tests/OfficerTests/OfficersTestsInvalid.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/CompaniesHouse.IntegrationTests/Tests/OfficerTests/OfficersTestsInvalid.cs b/tests/CompaniesHouse.IntegrationTests/Tests/OfficerTests/OfficersTestsInvalid.cs index ae86980..087b54d 100644 --- a/tests/CompaniesHouse.IntegrationTests/Tests/OfficerTests/OfficersTestsInvalid.cs +++ b/tests/CompaniesHouse.IntegrationTests/Tests/OfficerTests/OfficersTestsInvalid.cs @@ -16,9 +16,13 @@ protected override async Task When() } [Test] - public void ThenTheDataItemsAreNull() + public void ThenTheDataIsFullWithEmptyProperties() { - Assert.That(Result.Data, Is.Null); + Assert.That(Result.Data.Items, Is.Empty); + Assert.That(Result.Data.ActiveCount, Is.EqualTo(0)); + Assert.That(Result.Data.ResignedCount,Is.EqualTo(0)); + Assert.That(Result.Data.StartIndex, Is.EqualTo(0)); + Assert.That(Result.Data.TotalResults, Is.EqualTo(0));; } private async Task WhenRetrievingAnCompanyFilingHistoryForAnInvalidCompany()