Interface IMemoryCacheEntryDetailsTestBuilder<TValue>
Used for testing Microsoft.Extensions.Caching.Memory.IMemoryCache entry details.
Inherited Members
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 SourcePassing(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. |
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. |