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

Used for testing Microsoft.Extensions.Caching.Memory.IMemoryCache.

Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.Data
Assembly:MyTested.AspNetCore.Mvc.Caching.dll
Syntax
public interface IMemoryCacheTestBuilder

Methods

| Improve this Doc View Source

ContainingEntries(IDictionary<Object, Object>)

Tests whether the Microsoft.Extensions.Caching.Memory.IMemoryCache contains the provided entries.

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

Dictionary of cache entries.

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

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

| Improve this Doc View Source

ContainingEntry(Action<IMemoryCacheEntryKeyTestBuilder>)

Tests whether the Microsoft.Extensions.Caching.Memory.IMemoryCache contains specific entry by using a builder.

Declaration
IAndMemoryCacheTestBuilder ContainingEntry(Action<IMemoryCacheEntryKeyTestBuilder> memoryCacheEntryTestBuilder)
Parameters
Type Name Description
System.Action<IMemoryCacheEntryKeyTestBuilder> memoryCacheEntryTestBuilder

Builder for setting specific cache entry tests.

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

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

| Improve this Doc View Source

ContainingEntry(Object, Object)

Tests whether the Microsoft.Extensions.Caching.Memory.IMemoryCache contains entry with the provided key and corresponding value.

Declaration
IAndMemoryCacheTestBuilder ContainingEntry(object key, object value)
Parameters
Type Name Description
System.Object key

Key of the cache entry.

System.Object value

Value of the cache entry.

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

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

| Improve this Doc View Source

ContainingEntry(Object, Object, MemoryCacheEntryOptions)

Tests whether the Microsoft.Extensions.Caching.Memory.IMemoryCache contains entry with the provided key, corresponding value and the deeply equal options to the given ones.

Declaration
IAndMemoryCacheTestBuilder ContainingEntry(object key, object value, MemoryCacheEntryOptions options)
Parameters
Type Name Description
System.Object key

Key of the cache entry.

System.Object value

Value of the cache entry.

Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions options

MemoryCacheEntryOptions of the cache entry.

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

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

| Improve this Doc View Source

ContainingEntryOfType<TValue>()

Tests whether the Microsoft.Extensions.Caching.Memory.IMemoryCache contains entry with value of the provided type.

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

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

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

ContainingEntryOfType<TValue>(Object)

Tests whether the Microsoft.Extensions.Caching.Memory.IMemoryCache contains entry with value of the provided type and the given key.

Declaration
IAndMemoryCacheTestBuilder ContainingEntryOfType<TValue>(object key)
Parameters
Type Name Description
System.Object key

Key of the cache entry.

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

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

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

ContainingEntryWithKey(Object)

Tests whether the Microsoft.Extensions.Caching.Memory.IMemoryCache contains entry with the provided key.

Declaration
IAndMemoryCacheTestBuilder ContainingEntryWithKey(object key)
Parameters
Type Name Description
System.Object key

Key of the cache entry.

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

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

| Improve this Doc View Source

ContainingEntryWithValue<TValue>(TValue)

Tests whether the Microsoft.Extensions.Caching.Memory.IMemoryCache contains entry with the provided value.

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

Value of the cache entry.

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

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

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