Skip to content

Commit 57f7c50

Browse files
author
ericuss
committed
fix unit test of basket
1 parent 977e6ce commit 57f7c50

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/Services/Basket/Basket.UnitTests/Application/BasketWebApiTest.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ public async Task Doing_Checkout_Wit_Basket_Should_Publish_UserCheckoutAccepted_
125125
HttpContext = new DefaultHttpContext()
126126
{
127127
User = new ClaimsPrincipal(
128-
new ClaimsIdentity(new Claim[] { new Claim("unique_name", "testuser") }))
128+
new ClaimsIdentity(new Claim[] {
129+
new Claim("sub", "testuser"),
130+
new Claim("unique_name", "testuser"),
131+
new Claim(ClaimTypes.Name, "testuser")
132+
}))
129133
}
130134
};
131135

0 commit comments

Comments
 (0)