Skip to content

Commit f5d715d

Browse files
committed
test(approvals): Add required modifier to PropertyId in test payload
1 parent 8b72543 commit f5d715d

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

Unicorn.Contracts/ContractsService.Test/ContractEventHandlerTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ await mockDynamoDbClient.Received(1)
112112

113113
public class ApiGwSqsPayload
114114
{
115-
public string property_id { get; set; }
116-
public address address { get; set; }
117-
public string seller_name { get; set; }
115+
public required string property_id { get; set; }
116+
public required address address { get; set; }
117+
public required string seller_name { get; set; }
118118
}
119119

120120
public class address

Unicorn.Web/PublicationManagerService.Tests/RequestApprovalFunctionTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,5 +152,6 @@ await eventBindingClient.Received(0)
152152

153153
public class ApiGwSqsPayload
154154
{
155-
public string PropertyId { get; set; }
155+
public required string PropertyId { get; set; }
156+
156157
}

0 commit comments

Comments
 (0)