Skip to content

Commit

Permalink
Handles checks in clearance request builder
Browse files Browse the repository at this point in the history
  • Loading branch information
craigedmunds committed Dec 17, 2024
1 parent 483ce25 commit 15c7fe7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion TestDataGenerator/ClearanceRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,15 @@ public ClearanceRequestBuilder<T> WithArrivalDateTimeOffset(DateOnly? date, Time
}

public ClearanceRequestBuilder<T> WithItem(string documentCode, string commodityCode, string description,
int netWeight)
int netWeight, string checkCode = "H2019")
{
return Do(cr =>
{
cr.Items![0].TaricCommodityCode = commodityCode;
cr.Items![0].GoodsDescription = description;
cr.Items![0].ItemNetMass = netWeight;
cr.Items![0].Documents![0].DocumentCode = documentCode;
cr.Items![0].Checks![0].CheckCode = checkCode;
});
}

Expand Down
2 changes: 1 addition & 1 deletion TestDataGenerator/Scenarios/Samples/cr-one-item.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"documentQuantity": 3
}
],
"check": [
"checks": [
{
"checkCode": "H2019",
"departmentCode": "GB"
Expand Down

0 comments on commit 15c7fe7

Please sign in to comment.