ClaimsPrincipalTestHelpers
A set of helpers to make it easier to test code that callsSyntax
Inheritance
Methods
SetSelector
Parameters
- claim Claim: The Claims to set for the test run.
- authenticationType string: If needed, the AuthenticationType of the ClaimsIdentity. Defaults to “BreakdanceTests”.
- nameType string: The ClaimType to specify for the Name claim. Defaults to
. - roleType string: The ClaimType to specify for Role claims. Defaults to
.
SetSelector
Parameters
- claims List<Claim>: The Claims to set for the test run.
- authenticationType string: If needed, the AuthenticationType of the ClaimsIdentity. Defaults to “BreakdanceTests”.
- nameType string: The ClaimType to specify for the Name claim. Defaults to
. - roleType string: The ClaimType to specify for Role claims. Defaults to
.