Skip to content

Commit a658ef0

Browse files
committed
Add pagination properties to PersonsWithSignificantControl model
1 parent 7db16be commit a658ef0

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

tests/CompaniesHouse.Tests/ResourceBuilders/PersonsWithSignificantControl.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,11 @@ public class PersonsWithSignificantControl
77
public PersonWithSignificantControl[] Items { get; set; }
88

99
public int? CeasedCount { get; set; }
10+
11+
public int ItemsPerPage { get; set; }
12+
13+
public int StartIndex { get; set; }
14+
15+
public int TotalResults { get; set; }
1016
}
1117
}

tests/CompaniesHouse.Tests/ResourceBuilders/PersonsWithSignificantControlResourceBuilder.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ public string Create()
2020
""items"" : [
2121
{string.Join(",", _personsWithSignificantControl.Items.Select(GetPersonWithSignificantControlJsonBlock).ToArray())}
2222
],
23-
""ceased_count"" : {_personsWithSignificantControl.CeasedCount}
23+
""ceased_count"" : {_personsWithSignificantControl.CeasedCount},
24+
""items_per_page"" : {_personsWithSignificantControl.ItemsPerPage},
25+
""start_index"" : {_personsWithSignificantControl.StartIndex},
26+
""total_results"" : {_personsWithSignificantControl.TotalResults}
2427
}}";
2528
}
2629

0 commit comments

Comments
 (0)