MY TESTED ASP.NET CORE MVC DOCS
  • Tutorial
  • Testing Guide
  • API Reference
  • Troubleshoot
  • About
  • API Reference
  • MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.Challenge
  • IChallengeTestBuilder
Show / Hide Table of Contents
  • Common Classes & Extensions
    • ActionAttributesTestBuilderViewFeaturesExtensions
    • AuthenticationScheme
    • BadRequestTestBuilderDataAnnotationsExtensions
    • BadRequestTestBuilderExtensions
    • BaseShouldReturnTestBuilderExtensions
    • BaseTestBuilderWithResponseModelExtensions
    • ComponentBuilderAuthenticationExtensions
    • ComponentBuilderCachingExtensions
    • ComponentBuilderDependencyInjectionExtensions
    • ComponentBuilderEntityFrameworkCoreExtensions
    • ComponentBuilderHttpExtensions
    • ComponentBuilderOptionsExtensions
    • ComponentBuilderRoutingExtensions
    • ComponentBuilderSessionExtensions
    • ComponentBuilderTempDataExtensions
    • ComponentShouldHaveTestBuilderCachingExtensions
    • ComponentShouldHaveTestBuilderEntityFrameworkCoreExtensions
    • ComponentShouldHaveTestBuilderHttpExtensions
    • ComponentShouldHaveTestBuilderModelStateExtensions
    • ComponentShouldHaveTestBuilderSessionExtensions
    • ComponentShouldHaveTestBuilderTempDataExtensions
    • ComponentShouldHaveTestBuilderViewBagExtensions
    • ComponentShouldHaveTestBuilderViewDataExtensions
    • ContentType
    • ControllerBuilderDataAnnotationsExtensions
    • CreatedTestBuilderExtensions
    • From
    • HttpHeader
    • HttpMethod
    • HttpRequestBuilderAuthenticationExtensions
    • HttpRequestBuilderViewFeaturesExtensions
    • HttpScheme
    • HttpStatusCode
    • LocalRedirectTestBuilderExtensions
    • ModelErrorDetailsTestBuilderViewFeaturesExtensions
    • ModelErrorTestBuilderViewFeaturesExtensions
    • MyApplication
    • MyController<TController>
    • MyMvc
    • MyRouting
    • MyViewComponent<TViewComponent>
    • RedirectTestBuilderExtensions
    • ResolvedRouteTestBuilderDataAnnotationsExtensions
    • ServiceCollectionAbstractionsExtensions
    • ServiceCollectionCachingExtensions
    • ServiceCollectionControllersExtensions
    • ServiceCollectionCoreExtensions
    • ServiceCollectionEntityFrameworkCoreExtensions
    • ServiceCollectionExtensions
    • ServiceCollectionHttpExtensions
    • ServiceCollectionOptionsExtensions
    • ServiceCollectionRoutingExtensions
    • ServiceCollectionSessionExtensions
    • ServiceCollectionTempDataExtensions
    • ServiceCollectionUniverseExtensions
    • ServiceCollectionViewComponentsExtensions
    • ServiceCollectionViewFeaturesExtensions
    • ShouldReturnTestBuilderExtensions
    • ShouldReturnTestBuilderJsonResultExtensions
    • ShouldReturnTestBuilderPartialViewResultExtensions
    • ShouldReturnTestBuilderViewComponentResultExtensions
    • ShouldReturnTestBuilderViewResultExtensions
    • ViewComponentShouldReturnTestBuilderExtensions
    • With
  • ActionResults.BadRequest
    • IBadRequestErrorMessageTestBuilder
    • IBadRequestTestBuilder
  • ActionResults.Challenge
    • IChallengeTestBuilder
  • ActionResults.Content
    • IContentTestBuilder
  • ActionResults.Created
    • ICreatedTestBuilder
  • ActionResults.File
    • IFileTestBuilder
    • IPhysicalFileTestBuilder
  • ActionResults.Forbid
    • IForbidTestBuilder
  • ActionResults.Json
    • IJsonSerializerSettingsTestBuilder
    • IJsonTestBuilder
  • ActionResults.LocalRedirect
    • ILocalRedirectTestBuilder
  • ActionResults.NotFound
    • INotFoundTestBuilder
  • ActionResults.Object
    • IObjectTestBuilder
  • ActionResults.Ok
    • IOkTestBuilder
  • ActionResults.Redirect
    • IRedirectTestBuilder
  • ActionResults.StatusCode
    • IStatusCodeTestBuilder
  • ActionResults.View
    • IViewComponentTestBuilder
    • IViewTestBuilder
  • Actions
    • IActionResultTestBuilder<TActionResult>
    • IShouldHaveTestBuilder<TActionResult>
    • IShouldReturnTestBuilder<TActionResult>
    • IVoidActionResultTestBuilder
  • Application
    • IApplicationConfigurationBuilder
  • Attributes
    • IActionAttributesTestBuilder
    • IBaseAttributesTestBuilder<TAttributesTestBuilder>
    • IControllerActionAttributesTestBuilder<TAttributesTestBuilder>
    • IControllerAttributesTestBuilder
    • IViewComponentAttributesTestBuilder
  • Authentication
    • IAuthenticationPropertiesTestBuilder
    • IClaimsIdentityBuilder
    • IClaimsPrincipalBuilder
  • Base
    • IBaseTestBuilder
    • IBaseTestBuilderWithAction
    • IBaseTestBuilderWithActionResult<TActionResult>
    • IBaseTestBuilderWithComponent
    • IBaseTestBuilderWithComponentBuilder<TBuilder>
    • IBaseTestBuilderWithComponentShouldHaveTestBuilder<TBuilder>
    • IBaseTestBuilderWithController
    • IBaseTestBuilderWithInvokedAction
    • IBaseTestBuilderWithModel<TModel>
    • IBaseTestBuilderWithModelError
    • IBaseTestBuilderWithResponseModel
    • IBaseTestBuilderWithViewComponent
    • IBaseTestBuilderWithViewComponentInvocation
    • IBaseTestBuilderWithViewComponentResult<TInvocationResult>
  • CaughtExceptions
    • IAggregateExceptionTestBuilder
    • IBaseExceptionTestBuilder
    • IExceptionMessageTestBuilder
    • IExceptionTestBuilder
    • IShouldThrowTestBuilder
  • Controllers
    • IControllerBuilder<TController>
    • IControllerTestBuilder
  • Data
    • IDataProviderEntryDetailsTestBuilder<TValue>
    • IDataProviderEntryKeyTestBuilder
    • IDataProviderEntryTestBuilder
    • IDbContextBuilder
    • IDbContextTestBuilder
    • IMemoryCacheBuilder
    • IMemoryCacheEntryBuilder
    • IMemoryCacheEntryDetailsTestBuilder<TValue>
    • IMemoryCacheEntryKeyBuilder
    • IMemoryCacheEntryKeyTestBuilder
    • IMemoryCacheEntryTestBuilder
    • IMemoryCacheTestBuilder
    • ISessionBuilder
    • ISessionTestBuilder
    • ITempDataBuilder
    • ITempDataTestBuilder
    • IViewBagTestBuilder
    • IViewDataTestBuilder
  • Http
    • IHttpRequestBuilder
    • IHttpResponseTestBuilder
    • IResponseCookieTestBuilder
  • Invocations
    • IBaseShouldReturnTestBuilder
    • IBaseShouldReturnTestBuilder<TInvocationResult, TBuilder>
    • IBaseShouldReturnTestBuilder<TInvocationResult>
    • IViewComponentResultTestBuilder<TInvocationResult>
    • IViewComponentShouldHaveTestBuilder<TInvocationResult>
    • IViewComponentShouldReturnTestBuilder<TInvocationResult>
  • Models
    • IModelDetailsTestBuilder<TModel>
    • IModelErrorDetailsTestBuilder
    • IModelErrorDetailsTestBuilder<TModel>
    • IModelErrorTestBuilder
    • IModelErrorTestBuilder<TModel>
    • IModelStateTestBuilder
  • Options
    • IOptionsBuilder
  • Routing
    • IResolvedRouteTestBuilder
    • IRouteTestBuilder
    • IShouldMapTestBuilder
  • Services
    • IServicesBuilder
  • Uri
    • IUriBuilder
    • IUriTestBuilder
  • ViewComponentResults
    • IViewTestBuilder
  • ViewComponents
    • IViewComponentBuilder<TViewComponent>
    • IViewComponentTestBuilder

Interface IChallengeTestBuilder

Used for testing Microsoft.AspNetCore.Mvc.ChallengeResult.

Inherited Members
IBaseTestBuilderWithComponent.ShouldPassForThe<TComponent>(Action<TComponent>)
IBaseTestBuilderWithComponent.ShouldPassForThe<TComponent>(Func<TComponent, Boolean>)
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 Source

ContainingAuthenticationScheme(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
In This Article
  • Methods
    • ContainingAuthenticationScheme(String)
    • ContainingAuthenticationSchemes(IEnumerable<String>)
    • ContainingAuthenticationSchemes(String[])
    • WithAuthenticationProperties(AuthenticationProperties)
    • WithAuthenticationProperties(Action<IAuthenticationPropertiesTestBuilder>)
Back to top Copyright © 2015-2016 MyTestedASP.NET. All Rights Reserved. Generated by DocFX