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

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

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

Methods

| Improve this Doc View Source

ContainingEntries(IDictionary<String, Object>)

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

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

Dictionary of view data entries.

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

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

| Improve this Doc View Source

ContainingEntries(Object)

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

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

Anonymous object of view data entries.

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

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

| Improve this Doc View Source

ContainingEntry(Action<IDataProviderEntryKeyTestBuilder>)

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

Declaration
IAndViewDataTestBuilder ContainingEntry(Action<IDataProviderEntryKeyTestBuilder> viewDataEntryTestBuilder)
Parameters
Type Name Description
System.Action<IDataProviderEntryKeyTestBuilder> viewDataEntryTestBuilder

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

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

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

| Improve this Doc View Source

ContainingEntry(String, Object)

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

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

Key of the view data entry.

System.Object value

Value of the view data entry.

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

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

| Improve this Doc View Source

ContainingEntryOfType<TValue>()

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

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

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

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

ContainingEntryOfType<TValue>(String)

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

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

Key of the view data entry.

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

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

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

ContainingEntryWithKey(String)

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

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

Key of the view data entry.

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

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

| Improve this Doc View Source

ContainingEntryWithValue<TValue>(TValue)

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

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

Value of the view data entry.

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

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

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