Interface IChallengeTestBuilder
Used for testing Microsoft.AspNetCore.Mvc.ChallengeResult.
Inherited Members
Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.Challenge
Assembly:MyTested.AspNetCore.Mvc.Controllers.dll
Syntax
public interface IChallengeTestBuilder : IBaseTestBuilderWithActionResult<ChallengeResult>, IBaseTestBuilderWithInvokedAction, IBaseTestBuilderWithAction, IBaseTestBuilderWithComponent, IBaseTestBuilder
Methods
| Improve this Doc View SourceContainingAuthenticationScheme(String)
Tests whether Microsoft.AspNetCore.Mvc.ChallengeResult contains specific authentication scheme provided by string.
Declaration
IAndChallengeTestBuilder ContainingAuthenticationScheme(string authenticationScheme)
Parameters
Type | Name | Description |
---|---|---|
System.String | authenticationScheme | Expected authentication scheme as string. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.Challenge.IAndChallengeTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.Challenge.IAndChallengeTestBuilder. |
ContainingAuthenticationSchemes(IEnumerable<String>)
Tests whether Microsoft.AspNetCore.Mvc.ChallengeResult has the provided collection of authentication schemes.
Declaration
IAndChallengeTestBuilder ContainingAuthenticationSchemes(IEnumerable<string> authenticationSchemes)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.String> | authenticationSchemes | Expected authentication schemes as collection. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.Challenge.IAndChallengeTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.Challenge.IAndChallengeTestBuilder. |
ContainingAuthenticationSchemes(String[])
Tests whether Microsoft.AspNetCore.Mvc.ChallengeResult has the provided parameters of authentication schemes.
Declaration
IAndChallengeTestBuilder ContainingAuthenticationSchemes(params string[] authenticationSchemes)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | authenticationSchemes | Expected authentication schemes as string parameters. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.Challenge.IAndChallengeTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.Challenge.IAndChallengeTestBuilder. |
WithAuthenticationProperties(AuthenticationProperties)
Tests whether Microsoft.AspNetCore.Mvc.ChallengeResult has the provided AuthenticationProperties.
Declaration
IAndChallengeTestBuilder WithAuthenticationProperties(AuthenticationProperties properties)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties | properties | Expected AuthenticationProperties. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.Challenge.IAndChallengeTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.Challenge.IAndChallengeTestBuilder. |
WithAuthenticationProperties(Action<IAuthenticationPropertiesTestBuilder>)
Tests whether Microsoft.AspNetCore.Mvc.ChallengeResult has the given AuthenticationProperties provided as builder.
Declaration
IAndChallengeTestBuilder WithAuthenticationProperties(Action<IAuthenticationPropertiesTestBuilder> authenticationPropertiesBuilder)
Parameters
Type | Name | Description |
---|---|---|
System.Action<IAuthenticationPropertiesTestBuilder> | authenticationPropertiesBuilder | Expected AuthenticationProperties builder. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.Challenge.IAndChallengeTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.Challenge.IAndChallengeTestBuilder. |