Skip to content

Commit

Permalink
Officers now also return an empty object when the company doesn't exi…
Browse files Browse the repository at this point in the history
…st instead of 404
  • Loading branch information
kevbite committed Nov 28, 2024
1 parent 468cba7 commit 4953da5
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4953da5

Please sign in to comment.