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

Used for testing dynamic view bag.

Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.Data
Assembly:MyTested.AspNetCore.Mvc.ViewData.dll
Syntax
public interface IViewBagTestBuilder

Methods

| Improve this Doc View Source

ContainingEntries(IDictionary<String, Object>)

Tests whether the dynamic view bag contains the provided entries.

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

Dictionary of view bag entries.

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

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

| Improve this Doc View Source

ContainingEntries(Object)

Tests whether the dynamic view bag contains the provided entries.

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

Anonymous object of view bag entries.

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

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

| Improve this Doc View Source

ContainingEntry(Action<IDataProviderEntryKeyTestBuilder>)

Tests whether the dynamic view bag contains specific entry by using a builder.

Declaration
IAndViewBagTestBuilder ContainingEntry(Action<IDataProviderEntryKeyTestBuilder> viewBagEntryTestBuilder)
Parameters
Type Name Description
System.Action<IDataProviderEntryKeyTestBuilder> viewBagEntryTestBuilder

Builder for setting specific dynamic view bag entry tests.

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

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

| Improve this Doc View Source

ContainingEntry(String, Object)

Tests whether the dynamic view bag contains entry with the provided key and corresponding value.

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

Key of the view bag entry.

System.Object value

Value of the view bag entry.

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

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

| Improve this Doc View Source

ContainingEntryOfType<TValue>()

Tests whether the dynamic view bag contains entry with value of the provided type.

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

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

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

ContainingEntryOfType<TValue>(String)

Tests whether the dynamic view bag contains entry with value of the provided type and the given key.

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

Key of the view bag entry.

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

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

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

ContainingEntryWithKey(String)

Tests whether the dynamic view bag contains entry with the provided key.

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

Key of the view bag entry.

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

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

| Improve this Doc View Source

ContainingEntryWithValue<TValue>(TValue)

Tests whether the dynamic view bag contains entry with the provided value.

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

Value of the view bag entry.

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

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

Type Parameters
Name Description
TValue Type of the view bag 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