fix unit test of basket
This commit is contained in:
parent
977e6ce8e2
commit
57f7c50b69
@ -125,7 +125,11 @@ namespace UnitTest.Basket.Application
|
|||||||
HttpContext = new DefaultHttpContext()
|
HttpContext = new DefaultHttpContext()
|
||||||
{
|
{
|
||||||
User = new ClaimsPrincipal(
|
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")
|
||||||
|
}))
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user