Table of Contents

InMemoryTestStore<T> Class

Definition

Namespace
Codebelt.Extensions.Xunit
Assemblies
Codebelt.Extensions.Xunit.dll
Source
src/Codebelt.Extensions.Xunit/InMemoryTestStore.cs

Provides a default base implementation of the ITestStore<T> interface.

public class InMemoryTestStore<T> : ITestStore<T>

Type Parameters

T

The type of the object to reference in the memory store.

Inheritance
InMemoryTestStore<T>
Implements

Constructors

Name Description
InMemoryTestStore()

Initializes a new instance of the InMemoryTestStore<T> class.

Properties

Name Description
Count

Gets the number of elements contained in the InMemoryTestStore<T>.

InnerStore

Gets the reference to the encapsulated store.

Methods

Name Description
Add(T)

Adds an item to the InMemoryTestStore<T>.

Query(Func<T, bool>)

Filters the elements contained in the InMemoryTestStore<T> based on an optional predicate.

QueryFor<TResult>()

Filters the elements contained in the InMemoryTestStore<T> based on the type T.

See Also