diff --git a/src/CompaniesHouse/CompaniesHousePersonsWithSignificantControlClient.cs b/src/CompaniesHouse/CompaniesHousePersonsWithSignificantControlClient.cs index 8c2cac1..5626f98 100644 --- a/src/CompaniesHouse/CompaniesHousePersonsWithSignificantControlClient.cs +++ b/src/CompaniesHouse/CompaniesHousePersonsWithSignificantControlClient.cs @@ -35,5 +35,6 @@ public CompaniesHousePersonsWithSignificantControlClient(HttpClient httpClient, return new CompaniesHouseClientResponse(result); } + } } diff --git a/tests/CompaniesHouse.IntegrationTests/Tests/CompanyFilingHistoryTests/CompanyFilingHistoryTestsInvalid.cs b/tests/CompaniesHouse.IntegrationTests/Tests/CompanyFilingHistoryTests/CompanyFilingHistoryTestsInvalid.cs index a851628..c4cc4e7 100644 --- a/tests/CompaniesHouse.IntegrationTests/Tests/CompanyFilingHistoryTests/CompanyFilingHistoryTestsInvalid.cs +++ b/tests/CompaniesHouse.IntegrationTests/Tests/CompanyFilingHistoryTests/CompanyFilingHistoryTestsInvalid.cs @@ -1,4 +1,5 @@ using System.Threading.Tasks; +using CompaniesHouse.Response; using CompaniesHouse.Response.CompanyFiling; using NUnit.Framework; @@ -18,9 +19,13 @@ await WhenRetrievingAnCompanyFilingHistoryForAnInvalidCompany() } [Test] - public void ThenTheDataItemsAreNull() + public void ThenTheDataHasSomeEmptyPropertiesAndStatusOfInvalidFormat() { - Assert.That(_result.Data.Items, Is.Null); + Assert.That(_result.Data.Items, Is.Empty); + Assert.That(_result.Data.HistoryStatus, Is.EqualTo(FilingHistoryStatus.InvalidFormat)); + Assert.That(_result.Data.StartIndex, Is.EqualTo(0)); + Assert.That(_result.Data.TotalCount, Is.EqualTo(0)); + } private async Task WhenRetrievingAnCompanyFilingHistoryForAnInvalidCompany() diff --git a/tests/CompaniesHouse.IntegrationTests/Tests/PersonsWithSignificantControlTests/PersonsWithSignificantControlTestsInValid.cs b/tests/CompaniesHouse.IntegrationTests/Tests/PersonsWithSignificantControlTests/PersonsWithSignificantControlTestsInValid.cs index 1e6fc87..84a3837 100644 --- a/tests/CompaniesHouse.IntegrationTests/Tests/PersonsWithSignificantControlTests/PersonsWithSignificantControlTestsInValid.cs +++ b/tests/CompaniesHouse.IntegrationTests/Tests/PersonsWithSignificantControlTests/PersonsWithSignificantControlTestsInValid.cs @@ -17,9 +17,11 @@ 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.CeasedCount, Is.EqualTo(0)); } private async Task WhenRetrievingAnCompanyPersonsWithSignificantControlForAnInvalidCompany()