fix unit test of basket

This commit is contained in:
ericuss 2019-09-05 14:13:59 +02:00
parent 977e6ce8e2
commit 57f7c50b69

View File

@ -125,7 +125,11 @@ namespace UnitTest.Basket.Application
HttpContext = new DefaultHttpContext()
{
User = new ClaimsPrincipal(
new ClaimsIdentity(new Claim[] { new Claim("unique_name", "testuser") }))
new ClaimsIdentity(new Claim[] {
new Claim("sub", "testuser"),
new Claim("unique_name", "testuser"),
new Claim(ClaimTypes.Name, "testuser")
}))
}
};