MY TESTED ASP.NET CORE MVC DOCS
Show / Hide Table of Contents

Interface IMemoryCacheEntryDetailsTestBuilder<TValue>

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

Inherited Members
IMemoryCacheEntryTestBuilder.WithValue(Object)
IMemoryCacheEntryTestBuilder.WithValueOfType<TValue>()
IMemoryCacheEntryTestBuilder.WithAbsoluteExpiration(Nullable<DateTimeOffset>)
IMemoryCacheEntryTestBuilder.WithAbsoluteExpirationRelativeToNow(Nullable<TimeSpan>)
IMemoryCacheEntryTestBuilder.WithPriority(CacheItemPriority)
IMemoryCacheEntryTestBuilder.WithSlidingExpiration(Nullable<TimeSpan>)
Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.Data
Assembly:MyTested.AspNetCore.Mvc.Caching.dll
Syntax
public interface IMemoryCacheEntryDetailsTestBuilder<TValue> : IMemoryCacheEntryTestBuilder
Type Parameters
Name Description
TValue Type of Microsoft.Extensions.Caching.Memory.IMemoryCache entry value.

Methods

| Improve this Doc View Source

Passing(Action<TValue>)

Tests whether the Microsoft.Extensions.Caching.Memory.IMemoryCache entry passes the given assertions.

Declaration
IAndMemoryCacheEntryTestBuilder Passing(Action<TValue> assertions)
Parameters
Type Name Description
System.Action<TValue> assertions

Action containing all assertions on the Microsoft.Extensions.Caching.Memory.IMemoryCache entry.

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

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

| Improve this Doc View Source

Passing(Func<TValue, Boolean>)

Tests whether the Microsoft.Extensions.Caching.Memory.IMemoryCache entry passes the given predicate.

Declaration
IAndMemoryCacheEntryTestBuilder Passing(Func<TValue, bool> predicate)
Parameters
Type Name Description
System.Func<TValue, System.Boolean> predicate

Predicate testing the Microsoft.Extensions.Caching.Memory.IMemoryCache entry.

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

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

  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2016 MyTestedASP.NET. All Rights Reserved. Generated by DocFX