Table of Contents

ITestStore<T> Interface

Definition

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

Represents the members needed for adding and querying a store tailored for unit testing.

public interface ITestStore<T>

Type Parameters

T

The type of the object to reference in the store.

Properties

Name Description
Count

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

Methods

Name Description
Add(T)

Adds an item to the ITestStore<T>.

Query(Func<T, bool>)

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

QueryFor<TResult>()

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