MY TESTED ASP.NET CORE MVC DOCS
  • Tutorial
  • Testing Guide
  • API Reference
  • Troubleshoot
  • About
  • API Reference
  • MyTested.AspNetCore.Mvc.Builders.Contracts.Data
  • ITempDataTestBuilder
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 ITempDataTestBuilder

Used for testing Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary.

Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.Data
Assembly:MyTested.AspNetCore.Mvc.TempData.dll
Syntax
public interface ITempDataTestBuilder

Methods

| Improve this Doc View Source

ContainingEntries(IDictionary<String, Object>)

Tests whether the Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary contains the provided entries.

Declaration
IAndTempDataTestBuilder ContainingEntries(IDictionary<string, object> entries)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<System.String, System.Object> entries

Dictionary of temp data entries.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder.

| Improve this Doc View Source

ContainingEntries(Object)

Tests whether the Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary contains the provided entries.

Declaration
IAndTempDataTestBuilder ContainingEntries(object entries)
Parameters
Type Name Description
System.Object entries

Anonymous object of temp data entries.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder.

| Improve this Doc View Source

ContainingEntry(Action<IDataProviderEntryKeyTestBuilder>)

Tests whether the Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary contains specific entry by using a builder.

Declaration
IAndTempDataTestBuilder ContainingEntry(Action<IDataProviderEntryKeyTestBuilder> tempDataEntryTestBuilder)
Parameters
Type Name Description
System.Action<IDataProviderEntryKeyTestBuilder> tempDataEntryTestBuilder

Builder for setting specific Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary entry tests.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder.

| Improve this Doc View Source

ContainingEntry(String, Object)

Tests whether the Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary contains entry with the provided key and corresponding value.

Declaration
IAndTempDataTestBuilder ContainingEntry(string key, object value)
Parameters
Type Name Description
System.String key

Key of the temp data entry.

System.Object value

Value of the temp data entry.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder.

| Improve this Doc View Source

ContainingEntryOfType<TValue>()

Tests whether the Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary contains entry with value of the provided type.

Declaration
IAndTempDataTestBuilder ContainingEntryOfType<TValue>()
Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder.

Type Parameters
Name Description
TValue Type of the temp data entry value.
| Improve this Doc View Source

ContainingEntryOfType<TValue>(String)

Tests whether the Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary contains entry with value of the provided type and the given key.

Declaration
IAndTempDataTestBuilder ContainingEntryOfType<TValue>(string key)
Parameters
Type Name Description
System.String key

Key of the temp data entry.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder.

Type Parameters
Name Description
TValue Type of the temp data entry value.
| Improve this Doc View Source

ContainingEntryWithKey(String)

Tests whether the Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary contains entry with the provided key.

Declaration
IAndTempDataTestBuilder ContainingEntryWithKey(string key)
Parameters
Type Name Description
System.String key

Key of the temp data entry.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder.

| Improve this Doc View Source

ContainingEntryWithValue<TValue>(TValue)

Tests whether the Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary contains entry with the provided value.

Declaration
IAndTempDataTestBuilder ContainingEntryWithValue<TValue>(TValue value)
Parameters
Type Name Description
TValue value

Value of the temp data entry.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder.

Type Parameters
Name Description
TValue Type of the temp data entry value.
  • Improve this Doc
  • View Source
In This Article
  • Methods
    • ContainingEntries(IDictionary<String, Object>)
    • ContainingEntries(Object)
    • ContainingEntry(Action<IDataProviderEntryKeyTestBuilder>)
    • ContainingEntry(String, Object)
    • ContainingEntryOfType<TValue>()
    • ContainingEntryOfType<TValue>(String)
    • ContainingEntryWithKey(String)
    • ContainingEntryWithValue<TValue>(TValue)
Back to top Copyright © 2015-2016 MyTestedASP.NET. All Rights Reserved. Generated by DocFX