Skip to content

Commit cee48d5

Browse files
committed
fix: updated test with correct property casing
1 parent c531335 commit cee48d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Unicorn.Web/ApprovalService.Tests/RequestApprovalFunctionTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public async Task Publish_event_when_property_status_is_pending_or_declined()
2828
{
2929
// Arrange
3030
var eventPayload = Builder<ApiGwSqsPayload>.CreateNew()
31-
.With(x => x.property_id = "usa/anytown/main-street/777")
31+
.With(x => x.PropertyId = "usa/anytown/main-street/777")
3232
.Build();
3333

3434
var context = TestHelpers.NewLambdaContext();
@@ -97,7 +97,7 @@ public async Task Do_not_publish_event_when_property_status_is_approved()
9797
{
9898
// Arrange
9999
var eventPayload = Builder<ApiGwSqsPayload>.CreateNew()
100-
.With(x => x.property_id = "usa/anytown/main-street/777")
100+
.With(x => x.PropertyId = "usa/anytown/main-street/777")
101101
.Build();
102102
var context = TestHelpers.NewLambdaContext();
103103

@@ -154,5 +154,5 @@ await eventBindingClient.Received(0)
154154

155155
public class ApiGwSqsPayload
156156
{
157-
public string property_id { get; set; }
157+
public string PropertyId { get; set; }
158158
}

0 commit comments

Comments
 (0)